码迷,mamicode.com
首页 > 数据库 > 详细

sql 分页

时间:2015-09-14 22:34:31      阅读:170      评论:0      收藏:0      [点我收藏+]

标签:

select * from (select *,row_number() over(order by createon desc) as rownum  from AKCatLog ) as t        where t.rownum  between 0 and 10

select * from AKCatLog order by createon desc offset 0 rows fetch next 10 rows only

sql 分页

标签:

原文地址:http://www.cnblogs.com/lemeng/p/4808196.html

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