select top page.getCurrnetPageSize --page.getCurrnetPageSize :页面大小
* from Student --Student:表
where id > (select isnull(max(id),0) from
(select top page.getStartNo --page.getStartNo :当前页开始行号
id from Student order by id) as T ) order by id -- as T 暂时没用,可不用写上
* from Student --Student:表
where id > (select isnull(max(id),0) from
(select top page.getStartNo --page.getStartNo :当前页开始行号
id from Student order by id) as T ) order by id -- as T 暂时没用,可不用写上
本文介绍了一种使用SQL进行高效分页查询的方法。通过构造特定的SQL语句,包括使用子查询来确定起始行号及每页显示的记录数,从而实现对数据库表的快速分页浏览。此方法适用于需要大量数据分页展示的应用场景。
1170

被折叠的 条评论
为什么被折叠?



