您的位置:首页 > 博客中心 > 数据库 >

简单的分页sql

时间:2022-03-14 04:52

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

 

热门排行

今日推荐

热门手游