[SQL ] 使用rownum取最新一筆資料
資料庫是Oracle
select * from (select * from A order by B desc ) where rownum <=1
我有查到可以使用上面的語法
但是在使用的時候卻出現錯誤"ora-00907 missing right parenthesis"
錯誤的位置停在order by前面,想請教一下是什麼原因,謝謝~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.25.245.163
→
11/05 19:22, , 1F
11/05 19:22, 1F