Background documentationComment (sql_comment) Locate this document in the navigation structure

 

A comment (sql_comment) can be included for every SQL statement.

Structure

Syntax Syntax

  1. <sql_comment> ::=
      /*<sql_comment_text>*/
    | --<sql_comment_text>
    
    <sql_comment_text> ::=
      <!  comment_text  !>
End of the code.
Explanation

You can enter any comment text you wish.

When using the syntax rule --<sql_comment_text> for a row, all characters entered in the row after -- are regarded as comments.

Example

CREATE TABLE person (cno FIXED(4), first name CHAR(7), last name CHAR(7), account FIXED(7,2)) /*create table person*/

More Information

SQL Statements: Overview