|
|
COMMENT
Inserts or replaces a comment string on a database object.
where
routine-specificationis:Usage
Embedded/Interactive/ODBC/JDBC.
Description
The comment
stringfor the specified object is stored in the data dictionary. Any previously defined comment for the object is replaced by the new.Restrictions
A comment can only be stored on a system database object by the creator of the object.
A comment can only be stored on a private database object by the creator of the schema to which the object belongs.
See The Data Dictionary for a description of system and private database objects.
Only users with
SHADOWprivilege may store a comment on a shadow.Notes
A comment string may have a maximum length of 254 characters and must be enclosed in string delimiters.
Comments may not be altered or dropped directly. However, since the
COMMENTstatement replaces any existing comment with the new text, a comment may be altered simply by issuing a newCOMMENTstatement. A comment may be effectively dropped by issuing aCOMMENTstatement with an empty string.When a comment is written for a column, the column name must be qualified by a table-name or a view-name in the form
table-name.column-nameorview-name.column-name.Example
COMMENT ON DATABANK countries IS 'All countries we ship to';Standard Compliance
|
Mimer Information Technology AB Voice: +46 18 780 92 00 Fax: +46 18 780 92 40 info@mimer.se |
|
|