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

来源:互联网 发布:税务师如何备考知乎 编辑:程序博客网 时间:2024/05/01 19:40
select * from (select * from <table> order by <key>) where rownum=1;

select * from (select * from <table> order by <key> desc) where rownum=1;
原创粉丝点击