SQL Oracle 查詢出來的數據取第一條

select * from (select * from <table> order by <key>) where rownum=1; select * from (select * from <table> order by <key> desc) where rownum=1;
相關文章
相關標籤/搜索