Example: Using XMLCOMMENT to Create a Comment Node

Teradata Vantage™ XML Data Type

brand
Software
Teradata Vantage
prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1140-162K

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