COMMENT ON Statement (comment_on_statement)
The COMMENT ON
statement (comment_on_statement
)
creates, alters or deletes a comment for a database object stored in the database
catalog.
Syntax
<comment_on_statement> ::=
COMMENT ON <object_spec> IS <comment>
<object_spec> ::=
see explanation below
<comment> ::=
<string_literal>
| <parameter_name>Comments can be specified for the following database objects:
<object_spec> ::= |
Explanation |
|---|---|
|
The column must exist in the specified table. The current database user must be the owner of the table. The comment for this column can be requested by selecting the system table DOMAIN.COLUMNS. |
|
|
|
|
|
|
|
|
|
An existing sequence must be specified using sequence_name. The current database user must be the owner of the sequence. The comment for this sequence can be requested by selecting the system table DOMAIN.SEQUENCES. |
|
|
|
The specified table must identify a base or view table of the current user that is not a temporary table. The current database user must be the owner of the table. The comment for this table can be requested by selecting the system table DOMAIN.TABLES. |
|
The specified trigger name must identify a trigger of the specified table. The current database user must be the owner of the table. A comment is stored for the trigger. The comment can be retrieved by selecting the system table DOMAIN.TRIGGERS. |
|
The specified database user must identify an existing user whose owner is the current database user. The comment for this database user can be requested by selecting the system table DOMAIN.USERS. |
|
The specified user group must identify an existing user group whose owner is the current database user. The comment for this user group can be requested by selecting the system table DOMAIN.USERS. |
The corresponding variable must contain one of the values listed in the table. The values must be enclosed by inverted commas. Example of a corresponding variable:
|