跳到主要内容

UNNEST

Unnests the array and returns the set of elements.

Syntax

UNNEST( <array> )

Examples

SELECT UNNEST([1, 2]);

┌─────────────────┐
│ unnest([1, 2])
├─────────────────┤
1
2
└─────────────────┘

-- UNNEST(array) can be used as a table function.
SELECT * FROM UNNEST([1, 2]);

┌─────────────────┐
value
├─────────────────┤
1
2
└─────────────────┘
开始使用 Databend Cloud
低成本
快速分析
多种数据源
弹性扩展
注册