ARRAY_PUSHBACK
Descriptionβ
Add value to the end of the array
Syntaxβ
ARRAY_PUSHBACK(<arr>, <value>)
Parametersβ
Parameter | Description |
---|---|
<arr> | Corresponding array |
<value> | Value to be added |
Return Valueβ
Returns the array after adding value
Exampleβ
SELECT ARRAY_PUSHBACK([1, 2], 3),ARRAY_PUSHBACK([3, 4], 6);
+---------------------------+---------------------------+
| array_pushback([1, 2], 3) | array_pushback([3, 4], 6) |
+---------------------------+---------------------------+
| [1, 2, 3] | [3, 4, 6] |
+---------------------------+---------------------------+