Reference material for ARRAY_CONCAT function
ARRAY_CAT
Combines one or more arrays that are passed as arguments.
Parameter | Description | Supported input types |
---|---|---|
<array> [, ...n] | The arrays to be combined. If only one array is given, an identical array is returned. | ARRAY |
||
operatorParameter | Description | Supported input types |
---|---|---|
<expression> | The expressions to be concatenated. | TEXT / ARRAY , but at least one ARRAY |
||
operator must be of type ARRAY
, while the other parameter can be a string whose value can be converted to the underlying type of the array parameter, or it can be an array of the same type.
If one parameter to the ||
operator is NULL
, the result will be the non-null parameter; if both parameters are NULL
, the result will be NULL
.
The concatenation operator ||
can also be used for string concatenation.
ARRAY
of the same type as the input arrays
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
The following example concatenates two integer arrays:
[1, 2, 3]
The following example concatenates a string, whose value can be converted to integer, with an integer array:
[2, 1]