摘要: oracle查询前5条数据,然后进行时间排序select * from 表名 where rownum <6 order by t_time desc;上述表达式老是查询的都是前5条数据,然后按照时间排序对按照时间排序后的结果取前5条数据select * from (select * from 表名 order by t_time desc) where rownum <6; 阅读全文