一楼逻辑有问题,这个SQL是先在表中取出前10行,在进行排序;应该先对表排序,在取出前10行;select * from a (select * from table order by xxx) a where rownum<=10;
select * from table where rownum<=10 order by xxx