Description
- ALIAS alias-name
- Identifies the alias to which the comment applies. The alias-name must identify an alias that exists at the current server.
- COLUMN
- Specifies that a comment will be added to or replaced for a column.
- table-name.column-name or view-name.column-name
- Identifies the column to which the comment applies. The table-name or view-name must identify a table or view that exists at the
current server, but must not identify a global temporary table. The column-name must identify a column of that table or view.
- DISTINCT TYPE distinct-type-name
- Identifies the distinct type to which the comment applies. The distinct-type-name must identify a distinct type that exists at the current server.
- FUNCTION or SPECIFIC FUNCTION
- Identifies the function on which the comment applies. The function must
exist at the current server and it must be a user-defined function. The function
can be identified by its name, function signature, or specific name.
- FUNCTION function-name
- Identifies the function by its name. The function-name must identify exactly one function. The function may have any number
of parameters defined for it. If there is more than one function of the specified
name in the specified or implicit schema, an error is returned.
- FUNCTION function-name (parameter-type, ...)
- Identifies the function by its function signature, which uniquely identifies
the function. The function-name (parameter-type, ...) must identify a function with the specified function signature. The
specified parameters must match the data types in the corresponding position
that were specified when the function was created. The number of data types,
and the logical concatenation of the data types is used to identify the specific
function instance on which to comment. Synonyms for data types are considered
a match.
If function-name () is specified, the function identified
must have zero parameters.
- function-name
- Identifies the name of the function.
- (parameter-type, ...)
- Identifies the parameters of the function.
If an unqualified distinct
type name is specified, the database manager searches the SQL path to resolve the schema
name for the distinct type.
For data types that have a length, precision,
or scale attribute, use one of the following:
- Empty parentheses indicate that the database manager ignores the attribute when determining
whether the data types match. For example, DEC() will be considered a match
for a parameter of a function defined with a data type of DEC(7,2). However,
FLOAT cannot be specified with empty parenthesis because its parameter value
indicates a specific data type (REAL or DOUBLE).
- If a specific value for a length, precision, or scale attribute is specified,
the value must exactly match the value that was specified (implicitly or explicitly)
in the CREATE FUNCTION statement. If the data type is FLOAT, the precision
does not have to exactly match the value that was specified because matching
is based on the data type (REAL or DOUBLE).
- If length, precision, or scale is not explicitly specified, and empty
parentheses are not specified, the default attributes of the data type are
implied. The implicit length must exactly match the value that was specified
(implicitly or explicitly) in the CREATE FUNCTION statement.
Specifying the FOR DATA clause or CCSID clause is optional. Omission
of either clause indicates that the database manager ignores the attribute when determining
whether the data types match. If either clause is specified, it must match
the value that was implicitly or explicitly specified in the CREATE FUNCTION
statement.
- AS LOCATOR
- Specifies that the function is defined to receive a locator for this
parameter. If AS LOCATOR is specified, the data type must be a LOB or a distinct
type based on a LOB. If AS LOCATOR is specified, FOR SBCS DATA or FOR MIXED
DATA must not be specified.
- SPECIFIC FUNCTION specific-name
- Identifies the function by its specific name. The specific-name must identify a specific function that exists at the current
server.
- INDEX index-name
- Identifies the index to which the comment applies. The index-name must identify an index that exists at the current server.
- PACKAGE package-name
- Identifies the package to which the comment applies. The package-name must identify a package that exists at the current server. 60
- VERSION version-id
- version-id is the version identifier that was assigned to the
package when it was created. If version-id is not specified, a null
string is used as the version identifier.
- PARAMETER
- Specifies that a comment will be added to or replaced for a parameter.
- routine-name.parameter-name
- Identifies the parameter to which the comment applies. The parameter
could be for a procedure or a function. The routine-name must identify
a procedure or function that exists at the current server, and the parameter-name must identify a parameter of that procedure or function.
- specific-name.parameter-name
- Identifies the parameter to which the comment applies. The parameter
could be for a procedure or a function. The specific-name must identify
a procedure or function that exists at the current server, and the parameter-name must identify a parameter of that procedure or function.
- PROCEDURE or SPECIFIC PROCEDURE
- Identifies the procedure to which the comment applies. The procedure-name must identify a procedure that exists at the current server.
- PROCEDURE procedure-name
- Identifies the procedure by its name. The procedure-name must identify exactly one procedure. The procedure may have any number
of parameters defined for it. If there is more than one procedure of the specified
name in the specified or implicit schema, an error is returned.
- PROCEDURE procedure-name (parameter-type, ...)
- Identifies the procedure by its procedure signature, which uniquely
identifies the procedure. The procedure-name (parameter-type,
...) must identify a procedure with the specified procedure signature.
The specified parameters must match the data types in the corresponding position
that were specified when the procedure was created. The number of data types,
and the logical concatenation of the data types is used to identify the specific
procedure instance which is to be commented on. Synonyms for data types are
considered a match.
If procedure-name () is specified, the procedure
identified must have zero parameters.
- procedure-name
- Identifies the name of the procedure.
- (parameter-type, ...)
- Identifies the parameters of the procedure.
If an unqualified distinct
type name is specified, the database manager searches the SQL path to resolve the schema
name for the distinct type.
For data types that have a length, precision,
or scale attribute, use one of the following:
- Empty parentheses indicate that the database manager ignores the attribute when determining
whether the data types match. For example, DEC() will be considered a match
for a parameter of a procedure defined with a data type of DEC(7,2). However,
FLOAT cannot be specified with empty parenthesis because its parameter value
indicates a specific data type (REAL or DOUBLE).
- If a specific value for a length, precision, or scale attribute is specified,
the value must exactly match the value that was specified (implicitly or explicitly)
in the CREATE PROCEDURE statement. If the data type is FLOAT, the precision
does not have to exactly match the value that was specified because matching
is based on the data type (REAL or DOUBLE).
- If length, precision, or scale is not explicitly specified, and empty
parentheses are not specified, the default attributes of the data type are
implied. The implicit length must exactly match the value that was specified
(implicitly or explicitly) in the CREATE PROCEDURE statement.
Specifying the FOR DATA clause or CCSID clause is optional. Omission
of either clause indicates that the database manager ignores the attribute when determining
whether the data types match. If either clause is specified, it must match
the value that was implicitly or explicitly specified in the CREATE PROCEDURE
statement.
- AS LOCATOR
- Specifies that the procedure is defined to receive a locator for this
parameter. If AS LOCATOR is specified, the data type must be a LOB or a distinct
type based on a LOB. If AS LOCATOR is specified, FOR SBCS DATA or FOR MIXED
DATA must not be specified.
- SPECIFIC PROCEDURE specific-name
- Identifies the procedure by its specific name. The specific-name must identify a specific procedure that exists at the current
server.
- SEQUENCE sequence-name
- Identifies the sequence to which the comment applies. The sequence-name must identify a sequence that exists at the current server.
- TABLE table-name or view-name
- Identifies the table or view to which the comment applies. The table-name or view-name must identify a table
or view that exists at the current server, but must not identify a global
temporary table.
- TRIGGER trigger-name
- Identifies the trigger to which the comment applies. The trigger-name must identify a trigger that exists at the current server.
- IS
- Introduces the comment that to be added or replaced.
- string-constant
- Can be any character-string constant of up to 2000 characters (500 for
a sequence).
multiple-column-list
To comment on more than one column in a table or view, specify the table
or view name and then, in parenthesis, a list of the form:
column-name IS string-constant,
column-name IS string-constant, ...
The column
name must not be qualified, each name must identify a column of the specified
table or view, and that table or view must exist at the current server.
multiple-parameter-list
To comment on more than one parameter in a procedure or function, specify
the procedure name, function name, or specific name, and then, in parenthesis,
a list of the form:
parameter-name IS string-constant,
parameter-name IS string-constant, ...
The
parameter name must not be qualified, each name must identify a parameter
of the specified procedure or function, and that procedure or function must
exist at the current server.
If the identified package has a version-id, the comment is limited
to 176 bytes.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.