How to Embed SQL Comments
You can embed an SQL comment within an SQL statement. SQL comments may be used in both interactive and embedded SQL statements.
An SQL comment:
Bracketed comment:
Note: When defining an SQL routine using the command facility tools OCF, IDMSBCF, or using an OCF console in CA IDMS Visual DBA, the comment introducer '/*' must not be placed in column 1, because '/*' is interpreted as an end of file on input by the command facility.
Sample SQL Comments
The following example shows SQL comments with an embedded SQL statement:
select
emp_id, emp_lname, dept_id ── Columns to be selected
from employee ── Tables containing the data
where dept_id = 1234; ── Selection criterion
|
Copyright © 2014 CA.
All rights reserved.
|
|