阅读背景:

使用row_number从查询中获取@@rowcount的有效方法

来源:互联网 

I have an expensive query using the row_number over() functionality in SQL Server 2005. I return only a sub list of those records as the query is paginated. However, I would like to also return the total number of records, not just the paginated subset. Running the query effectively twice to get the count is out of the question.I have an expensive query using the row_number




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: