ARRAY_POPFRONT
descriptionβ
Remove the first element from array.
Syntaxβ
ARRAY_POPFRONT(<arr>)
Parametersβ
Parameter | Description |
---|---|
<arr> | ARRAY array |
Return Valueβ
Returns the array after removing the first element. Special cases:
- If the input parameter is NULL, returns NULL.
exampleβ
select array_popfront(['test', NULL, 'value']);
+-----------------------------------------------------+
| array_popfront(ARRAY('test', NULL, 'value')) |
+-----------------------------------------------------+
| [NULL, "value"] |
+-----------------------------------------------------+