select rownum, r,empno,ename,sal
from(select rownum r,empno,ename,sal from emp where rownum <=8 order by sal desc )e1
where r>=5;
这个分页有点难,听不懂的感觉
SELECT * FROM (SELECT ROWNUM rNUM,e.* FROM (SELECT * FROM emp ORDER BY sal DESC) e)
WHERE rNUM>=5 AND rNUM<=8
测完之后懂了,thx~