oracle数据库按照日期排序后获取第一条数据SQL

select *  from (select * from 表名 where 条件 order by 排序日期 desc) where rownum=1;

  

select *  from (select * from TABLE where STATE = 3 order by TIME desc) where rownum=1;

posted @ 2020-11-03 09:36  松松松松松柯  阅读(5072)  评论(0编辑  收藏  举报