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

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

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

猜你喜欢

转载自762612388.iteye.com/blog/2359682