16.20 - Example: Using XMLCONCAT to Concatenate a List of XML Values - 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 the sequence (1,2,3,4,5,6).

SELECT XMLCONCAT(XMLQUERY('(1,2,3)'), XMLQUERY('(4,5,6)'));

Query result:

XMLCONCAT(XMLQUERY('(1,2,3)'),XMLQUERY('(4,5,6)') RETURNING SEQUENCE)
---------------------------------------------------------------------
1 2 3 4 5 6