16.20 - Example: Using XMLTEXT to Create an XML Text 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 the text node with the node value 'Special instructions for processing this order' as its only item.

SELECT XMLTEXT('Special instructions for processing this order');

Query result:

XMLTEXT('Special instructions for processing this order' RETURNING SEQUENCE)
----------------------------------------------------------------------------
Special instructions for processing this order