ARRAY_PREPEND

functionsupportedCore SQL functions

docs.snowflake.com ↗

Semi-structured and structured data functions

Returns 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

NameRequiredDescription
arrayrequiredThe source array.
new_elementrequiredThe element to be prepended.

Returns

This returns the updated array.

Usage notes

See also

Referenced by