Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PL/SQL: SQL query with comments.

Phil in SydneyApr 24 2008 — edited Apr 24 2008
Hi there,
I am not sure if you met this situation before.
I wrote a SQL file named sql001.sql.
I did some normal queries like creating a table etc.
As I modified the original code, I used '--' to comment some old query commands.
As I edited this file in Jdeveloper, copied all the commands and pasted
them in SQL plus, it popuped Error. The error was located on my comment lines.
I did comment them with -- at the beginning. Why did it show me this error?

The old content that I commented is only used for my reference.
To run this SQL file, I have to completely delete the commented line and my SQL
file can be run smoothly. My friend told me there was some "un-seen" charactors in
the editor and made this kind of troubles. I have no idea why this happened.

Can anyone explain it?

Thanks.

Phil
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 22 2008
Added on Apr 24 2008
2 comments
377 views