DB2 Version 9.7 for Linux, UNIX, and Windows

XMLCONCAT scalar function

Read syntax diagramSkip visual syntax diagram
                                 .-------------------.      
                                 V                   |      
>>-XMLCONCAT--(--XML-expression----,--XML-expression-+--)------><

The schema is SYSIBM. The function name cannot be specified as a qualified name.

The XMLCONCAT function returns a sequence containing the concatenation of a variable number of XML input arguments.

XML-expression
Specifies an expression of data type XML.

The data type of the result is XML. The result is an XML sequence containing the concatenation of the non-null input XML values. Null values in the input are ignored. If the result of any XML-expression can be null, the result can be null; if the result of every input value is null, the result is the null value.

Example:

Note: XMLCONCAT does not insert blank spaces or new line characters in the output. All example output has been formatted to enhance readability.