使用 select top 5 * from table order by id 時,報用select語句檢索oracle數據庫時出現ora-00923:未找到要求的from關鍵字。數據庫
由於該SQL語句是在SQLServer中的使用的,若是是在 Oracle中,須要使用 rownm 這個關鍵字用來返回 查詢的記錄條數。oracle
eg: select * from table where rownnm<=5 order by idtable