首页 > 代码库 > 简单的分页sql

简单的分页sql

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

 

简单的分页sql