16.20 - Example: Using XMLFOREST to Construct a Sequence of XML Elements - 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)
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>