sql server数据库分页思路:
select top 10 * from testtable where (id not in (select top 20 id from testtable order by id)) order by id
select top 页大小 * from testtable where (id not in (select top 页大小*页数 id from 表 order by id)) order by id
更多有关sql数据库分页代码的例子,请参考:
CopyRight © 2010-2021 脚本学堂 Jb200.com , All Rights Reserved.