Hyphen at the End of the Line in SQL Statement gives Error ORA-00923
Last updated on JUNE 02, 2017
Applies to:SQL*Plus - Version 10.2.0.1 to 18.104.22.168 [Release Oracle10g to 11.2]
Information in this document applies to any platform.
This problem can occur on any platform.
Running a SQLwith minus sign/hyphen (-) at the line gives error:
SQL> select 5 -
> 7 from dual;
select 5 7 from dual
ERROR at line 1:
ORA-00923: FROM keyword not found where expected
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms