sql 分页

with #pager as
(
select * ,ROW_NUMBER() OVER(Order By ID) as rowid from  table
)
select * from #pager where rowid between (130 * (50-1)+1) and 130 * 50 --50条/页,第130页

原文地址:https://www.cnblogs.com/xuejianxiyang/p/8333910.html