Rules for Using COMMENT - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Detailed Topics

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
imq1591724555718.ditamap
dita:ditavalPath
imq1591724555718.ditaval
dita:id
B035-1184
lifecycle
previous
Product Category
Teradata Vantage™

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.