第10条到第20条记录(共有11条记录)
select * from
(select top 11 * from
(select top 20 * from tablename order by tableid asc) table1
order by tableid desc)table2 order by tableid asc
本文介绍了一种使用SQL进行分页查询的方法,通过嵌套查询的方式实现从特定记录开始的分页显示,适用于需要对大量数据进行高效分页处理的场景。
第10条到第20条记录(共有11条记录)
select * from
(select top 11 * from
(select top 20 * from tablename order by tableid asc) table1
order by tableid desc)table2 order by tableid asc

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