17.10 - Example: Using XMLFOREST to Construct a Sequence of XML Elements - 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)
SELECT XMLFOREST('(858)555-1234' AS Phone1, '(858)555-9876' AS Phone2);

The result of the query is:

XMLFOREST('(858)555-1234' AS Phone1, '(858)555-9876' AS Phone2)
---------------------------------------------------------------
<Phone1>(858)555-1234</Phone1><Phone2>(858)555-9876</Phone2>