17.10 - Rules for Using COMMENT - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Detailed Topics

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1184-171K
Language
English (United States)

The following rules apply to using the COMMENT statement.

Transaction Processing

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:

  • Distinct
  • Structured

COMMENT ON METHOD

COMMENT ON METHOD works for the following method types:

  • Constructor
  • Instance
  • Mutator

You must specify the specific method name for any method on which you want to place a comment.