【发布时间】:2016-12-02 09:32:13
【问题描述】:
我正在 SQL Developer 中执行以下查询。
SELECT * FROM Person where person_name='rahul' order by created_time desc limit 10;
当我执行它时,SQL Developer 给了我以下错误。
ORA-00933: SQL command not properly ended
00933. 00000 - "SQL command not properly ended"
*Cause:
*Action:
我使用以下链接作为参考。
https://www.techonthenet.com/sql/select_limit.php
我已经试过了
SELECT * FROM Person where person_name='rahul' order by created_time desc OFFSET 5 ROWS FETCH NEXT 10 ROWS ONLY;
ORA-00933: SQL command not properly ended
00933. 00000 - "SQL command not properly ended"
*Cause:
*Action:
Error at Line: 1 Column: 75
请注意,OFFSET 不被视为关键字。
【问题讨论】:
-
删除 ; ?
-
没有。还是一样。