- 分页查询一
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;