需要,则: select * from (select select t.*, ROWNUM rn from dept order by xxx asc|desc) where rn<=5
------解决方案-------------------- select * from dept where rowid<6
------解决方案--------------------
SQL code
select * from dept where rownum <=5;
------解决方案--------------------