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
Published
July 2021
Last Update
2021-07-28
Content Type
Programming Reference
Publication ID
B035-1140-171K
Language
English (United States)
Last Update
2021-07-28

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