DB2 10.5 for Linux, UNIX, and Windows

SQL comments

Static SQL statements can include host language or SQL comments. Dynamic SQL statements can include SQL comments.

There are two types of SQL comments:
simple comments
Simple comments are introduced by two consecutive hyphens (--) and end with the end of line.
bracketed comments
Bracketed comments are introduced by /* and end with */.
The following rules apply to the use of simple comments:
The following rules apply to the use of bracketed comments:

Examples