select *
from (select t.*, rownum as row_num from 表名 t) tt
where tt.row_num between 100 and 110
select top 100 * from (select top 500 * from T1 order by id asc) a order by id desc先asc取前500条 再倒着取(desc)这个结果的100条...
MSSQL在我这里测试通过
欢迎分享,转载请注明来源:内存溢出
select *
from (select t.*, rownum as row_num from 表名 t) tt
where tt.row_num between 100 and 110
select top 100 * from (select top 500 * from T1 order by id asc) a order by id desc先asc取前500条 再倒着取(desc)这个结果的100条...
MSSQL在我这里测试通过
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)