Rules for Using COMMENT - Analytics Database - Teradata Vantage

SQL Data Definition Language Detailed Topics

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2024-12-13
dita:mapPath
vuk1628111288877.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
jbg1472252759029
lifecycle
latest
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.