wearksidy_yxp
2015-08-24 09:47
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~
Oracle高级查询
62884 学习 · 144 问题
相似问题