16.20 - Example: Using XMLCOMMENT to Create a Comment Node - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ XML Data Type

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Release Date
March 2019
Content Type
Programming Reference
Publication ID
B035-1140-162K
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-->