The following rules apply to using the COMMENT statement.
The comment-placing form of COMMENT is processed as a DDL statement for transaction processing, so it cannot be used in 2PC session mode. For a description of the two-phase commit protocol, see Introduction to Teradata.
If you specify a COMMENT request within an explicit transaction in Teradata session mode, it must be the last request in that transaction.
Comments on UDFs
COMMENT ON FUNCTION includes for the following UDF types:
- Simple external UDFs
- Table UDFs
- SQL UDFs
COMMENT ON TYPE
COMMENT ON TYPE works for both UDT types:
COMMENT ON METHOD
COMMENT ON METHOD works for the following method types:
You must specify the specific method name for any method on which you want to place a comment.