简单的分页sql

select top 5 * from books where id not in(select top (5*(5-1)) id from Books order by id) order by id
select top 2 * from Users where id not in(select top (2*(2-1)) id from Users)
select top 10 id from Books

 

posted @ 2015-01-11 16:51  临冰听雪丶  阅读(111)  评论(0编辑  收藏  举报