Multi-Line or Single Line Comment without a Leading Space /* ... */ is Interpreted as a Rerun Instead of a Comment
Last updated on NOVEMBER 15, 2017
Applies to:SQL*Plus - Version 10.1.0.2 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.
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.
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