17.10 - Example: Using XMLTEXT to Create an XML Text 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 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