Quick Search:
 The Oracle COMMENT Keyword      [Return To Index] Jump to:  


In Oracle, comments may be placed in source code in two different ways:

  • Using a C-style slash-star to begin a comment and a star-slash to end the comment, like this:

    /* this is a simple C-style comment block */

    /* this is another C-style comment
    block that spans
    multiple lines.

  • Using a line that begins with a double-dash (-), like this:

    -- a single line comment

A C-style comment (/*...*/) can span multiple lines if necessary, but cannot contain nested C-style comments. It can contain double-dash style comments.

The double-dash cannot span multiple lines.
Related Code Snippets:
   Home |    Search |    Code Library |    Sponsors |    Privacy |    Terms of Use |    Contact Us © 2003 - 2024 psoug.org