当前位置: 移动技术网 > IT编程>数据库>Oracle > Oracle 查询出来的数据取第一条

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

2018年01月13日  | 移动技术网IT编程  | 我要评论

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

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

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

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网