COMMENT (Returning Form) Usage Notes - Teradata VantageCloud Lake

Lake - Working with SQL

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
jbe1714339405530.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
jbe1714339405530
  • The data type of host_variable_name must be VARCHAR(255).
  • If no comment exists for the specific object, host_indicator_name returns NULL.
  • Although the COMMENT statement returns only one data value (in effect, a single row containing a single column), you can use a selection cursor with a static COMMENT statement. Use the same procedure for the cursor as for a static selection cursor.
  • If you run a dynamic COMMENT statement, then you must use a dynamic cursor because data is returned. The same procedure is followed as with dynamic selection.
  • If you use COMMENT with a cursor or as a dynamic SQL statement, then you must omit the INTO clause.