【oracle】之分页浅尝

  • 分页查询一
select * from (select a1.*,rownum rn from (select * from users) a1 where rownum <=5) where rn>=3;
  • 分页查询二
select a1.* from (select m.*,rownum rn from users m where rownum <=5) a1 where rn >= 3;
  • 分页查询三
select a1.* from (select m.*,rownum rn from users m) a1 where rn between 3 and 5;

猜你喜欢

转载自blog.csdn.net/haoyutc/article/details/70230166