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
Published
July 2021
Last Update
2021-07-28
Content Type
Programming Reference
Publication ID
B035-1140-171K
Language
English (United States)
Last Update
2021-07-28

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-->