ARRAY_PREPEND
functionsupportedCore SQL functionsReturns an array containing the new element as well as all elements from the source array. The new element is positioned at the beginning of the array.
Syntax
ARRAY_PREPEND( <array> , <new_element> )
Parameters
| Name | Required | Description |
|---|---|---|
array | required | The source array. |
new_element | required | The element to be prepended. |
Returns
This returns the updated array.
Usage notes
- When you pass a structured array to the function, the function returns a structured array of the same type.
- If array is a structured ARRAY, the type of the new element must be coercible to the type of the ARRAY.