Quick Search:
CODE
Oracle PL/SQL Code Library
JOBS
Find Or Post Oracle Jobs
FORUM
Oracle Discussion & Chat
 The Oracle COMMENT Keyword      [Return To Index] Jump to:  
  Looking for the original pages? (formerly called "Morgan's Library") You can find them here.

Term: COMMENT

Definition:
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      :      Code Library      :      Sponsors      :      Privacy      :      Terms of Use      :      Contact Us 334 users online    © 2009 psoug.org
PSOUG LOGIN
Username: 
Password: 
Forgot your password?