I know several ways of writing paged query in SQL Server 2005. But I have no idea about their performance. Which one is the best and most optimized way for writing paging SQL queries?
以我的经验,它使用的是ROW_NUMBER(),只需确保orderby字段是聚簇索引,这样您就不必为对每个查询的数据集进行排序而付出代价。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.