Comments
Comments within the NZPLSQL language can start with either a double dash or a forward-slash asterisk.
- A double dash (--) starts a comment that extends
to the end of the line. For example:
-- This is a comment line.
- A forward-slash asterisk pair (/*) starts a block
comment, which extends to the next occurrence of the ending sequence
which is an asterisk forward-slash (*/) pair. For
example:
/* This is a block comment, which can span multiple lines. Any code inside the block such as: url varchar := 'http://www.ibm.com' is ignored. */
Block comments cannot be nested, but double dash comments can be enclosed in a block comment. A double dash comment can “hide” the block comment delimiters /* and */.