Hyphen at the End of the Line in SQL Statement gives Error ORA-00923
(Doc ID 292331.1)
Last updated on FEBRUARY 25, 2019
Applies to:SQL*Plus - Version 10.2.0.1 to 188.8.131.52 [Release Oracle10g to 11.2]
Information in this document applies to any platform.
This problem can occur on any platform.
*** Checked for relevance on 25-Feb-2019 ****
Running a SQL statement with minus sign/hyphen (-) at the end 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
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document