[SQL ] 使用rownum取最新一筆資料

看板Database作者 (章魚)時間15年前 (2010/11/04 20:42), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
資料庫是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
文章代碼(AID): #1CqgeYCu (Database)