Comments in an SQLJ application
To document your SQLJ program, you need to include comments. You can use Java comments outside of SQLJ statements and SQL or Java comments in SQLJ statements.
You can include Java comments
outside SQLJ clauses, wherever the Java language
permits them. Within an SQLJ clause, you can use comments in the following
places:
- Within a host expression (enclosed in /* and */ or preceded by //).
- Within an SQL statement in an executable clause, if the data server
supports a comment within the SQL statement.
- For connections to Db2 data servers
or Informix® data servers, comments can be:
- Anywhere in the SQL statement text, and enclosed in /* and */ pairs. /* and */ pairs can be nested.
- At the end of the SQL statement text, and preceded by two hyphens (--).
- For connections to Informix data servers only, comments can be enclosed in left curly bracket ({) and right curly bracket (}) pairs.
- For connections to Db2 data servers
or Informix® data servers, comments can be: