oracle 数据库按照日期排序取第一条数据
select * from (select * from TABLE where STATUS= 3 order by TIME desc) where rownum=1;
这篇博客介绍了如何使用Oracle SQL语句,通过ORDER BY和ROWNUM选取STATUS为3的数据表中最新的记录。
select * from (select * from TABLE where STATUS= 3 order by TIME desc) where rownum=1;
717
3253

被折叠的 条评论
为什么被折叠?