Hyphen at the End of the Line in SQL Statement gives Error ORA-00923

(Doc ID 292331.1)

Last updated on JUNE 02, 2017

Applies to:

SQL*Plus - Version to [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