您的位置:首页 > 博客中心 > 数据库 >

Oracle 查询出来的数据取第一条

时间:2022-03-14 14:49

select * from (select * from <table> order by <key> desc) where rownum=1;

 

 

 

select * from (select * from <table> order by <key>) where rownum=1;

热门排行

今日推荐

热门手游