Skip to main content

ARRAY_PREPEND

Prepends an element to the array.

Syntax

ARRAY_PREPEND( <element>, <array> )

Examples

SELECT ARRAY_PREPEND(1, [3, 4]);

┌──────────────────────────┐
│ array_prepend(1, [3, 4])
├──────────────────────────┤
[1,3,4]
└──────────────────────────┘
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today