1.找出emp表中第5到10条记录并按降序排列
1.1 SELECT * FROM emp ORDER BY sal DESC; //查出表中所有数据并按降序排列
1.2 SELECT ROWNUM r,s.* FROM (SELECT * FROM emp ORDER BY sal DESC ) s //把降序排列好的表作为一个临时表
1.3 SELECT t.* FROM (SELECT ROWNUM r,s.* FROM (SELECT * FROM emp ORDER BY sal DESC ) s)t
WHERE r BTTWEEN 5 AND 10 //成功