ARRAY_CAT
functionsupportedCore SQL functionsReturns a concatenation of two arrays.
Syntax
ARRAY_CAT( <array1> , <array2> )
Parameters
| Name | Required | Description |
|---|---|---|
array1 | required | The source array. |
array2 | required | The array to be appended to array1. |
Returns
An ARRAY containing the elements from array2 appended after the elements of array1.
Usage notes
- Both arguments must either be structured ARRAYs or semi-structured ARRAYs.
- If you are passing in semi-structured ARRAYs, both arguments must be of ARRAY type or VARIANT containing an array.
- If you are passing in structured ARRAYs, the function returns an ARRAY of a type that can accommodate both input types.
- If either argument is NULL, the function returns NULL without reporting any error.