Multi-Line or Single Line Comment without a Leading Space /* ... */ is Interpreted as a Rerun Instead of a Comment

(Doc ID 225924.1)

Last updated on NOVEMBER 15, 2017

Applies to:

SQL*Plus - Version and later
Information in this document applies to any platform.


In SQL*Plus, using a Comment without a leading space after the "/*" causes it to execute instead of recognizing it as a Comment.

For Example:

Do a select statement like:

 Here the above comment is ignored and the "/" is interpreted as "Run". As a result, the 'Select * from emp' statement is re-run.

Multi-line Example:

/*Comment 1
Comment 2
Comment 3


Using multiline comments in SQL*Plus.


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