首页 > 其他 > 详细

查询分页

时间:2018-01-13 18:27:16      阅读:211      评论:0      收藏:0      [点我收藏+]
select top 10 * from ComprehensiveShow where id not in(select top 40 id from ComprehensiveShow order by id)

意思是查询前40条数据,在查询不在前40条数据中的前10条数据

//select top 10 * from ComprehensiveShow where id not in(select top 10(1-1) id from ComprehensiveShow order by id)
//表示第一页 10(1-1)=0

查询分页

原文:https://www.cnblogs.com/enych/p/8279896.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!