标签:
★先来定义分页语句将要用到的几个参数:
以之前的ADDRESSBOOK数据表为例(每页显示10条记录):
第二页SQL演示:
select top 20 * from addressbook where id not in (select top 10 id from addressbook)
二、MySQL数据库分页语句
第二页SQL演示:
select * from addressbook where limit 10,10
三、Oracle数据库分页语句
第二页SQL演示:
select * from ( select rownum rn,t.* from addressbook where rownum<= 20 ) where rownum > 10
Oracle、MySQL和SqlServe分页查询的语句区别
标签:
原文地址:http://blog.csdn.net/huifengy55/article/details/51361368