How to retrieve the total row count of a query with TOP

前端 未结 5 2083
梦如初夏
梦如初夏 2021-01-06 07:22

I have a SQL Server 2008 query

SELECT TOP 10 *
FROM T
WHERE ...
ORDER BY ...

I\'d like to get also the total number of the rows. The obious

5条回答
提交回复
热议问题