码迷,mamicode.com
首页 > 其他好文 > 详细

查询分页

时间:2018-01-13 19:02:16      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:log   表示   blog   class   div   order by   pos   post   top   

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

查询分页

标签:log   表示   blog   class   div   order by   pos   post   top   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!