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页

posted @ 2018-01-23 09:09  Ace001  阅读(152)  评论(0编辑  收藏  举报