17.10 - Example: Using XMLCOMMENT to Create a Comment Node - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - XML Data Type

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

The following query returns a sequence with a single comment node whose serialization is 
<!--The orders following this comment will be shipped the next day-->.

SELECT XMLCOMMENT('The orders following this comment will be shipped the next day');

Query result:

XMLCOMMENT('The orders following this comment will be shipped the next day')
----------------------------------------------------------------------------
<!--The orders following this comment will be shipped the next day-->