17.10 - Example: Using XMLCONCAT to Concatenate a List of XML Values - 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)

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