Skip to main content

ARRAY_PREPEND

在数组前添加一个元素。

语法

ARRAY_PREPEND( <element>, <array> )

示例

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