Example: Using XMLFOREST to Construct a Sequence of XML Elements - Teradata Vantage NewSQL Engine - 16.20

Teradata Vantageā„¢ XML Data Type

prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1140-162K
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>