Example: Using XMLCONCAT to Concatenate a List of XML Values

Teradata Vantageā„¢ XML Data Type

brand
Software
Teradata Vantage
prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1140-162K

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