注意事项,它是按照数据的插入顺序进行排序的,而不是按照你的想法去排序,有时看查到的顺序“颠三倒四”也是很正常的。
这是要利用“子查询(先进行排序)”;
select rwnum,ename,sal from (select * from emp order by sal) where rownum<4;