DB2 10.5 for Linux, UNIX, and Windows

Comments

Comments are allowed in the prolog or query body. Comments do not affect query processing.

A comment is composed of a string that is delimited by the symbols (:and :). The following example is a comment in XQuery:
(: A comment. You can use comments to make your code easier to understand. :)

The following general rules apply to using comments in DB2® XQuery:

The following examples illustrate legal comments and comments that result in errors: