分页控件之分页算法 —— for SQL Server 版。百万级的数据只需要15毫秒到900毫秒
的数据,那么SQL语句就是
declare @col int
select top 11 @col = ProductID from Products where CategoryID = 3 order by ProductID desc
select top 10 * from Products where ProductID >= @col and CategoryID = 3 order by ProductID desc
http://topic.csdn.net/u/20080507/19/82739f4b-ecfe-429c-99b1-6278cb21ef5a.html?seed=248613659
他们设置了哪些标签:
谁收藏了这个网址:
时间:2008-5-9 22:51:00 | 相关网摘
时间:2008-5-9 22:52:18 | 相关网摘
时间:2008-5-10 0:22:26 | 相关网摘
的数据,那么SQL语句就是
declare @col int
select top 11 @col = ProductID from Products where CategoryID = 3 order by ProductID desc
select top 10 * from Products where ProductID >= @col and CategoryID = 3 order by ProductID desc
时间:2008-5-10 20:44:08 | 相关网摘
忽略了索引的作用。