跳到主要内容

ARRAY_UNIQUE

Counts unique elements in the array (except NULL).

Syntax

ARRAY_UNIQUE( <array> )

Examples

SELECT ARRAY_UNIQUE([1, 2, 3, 3, 4]);

┌───────────────────────────────┐
│ array_unique([1, 2, 3, 3, 4])
├───────────────────────────────┤
4
└───────────────────────────────┘
开始使用 Databend Cloud
低成本
快速分析
多种数据源
弹性扩展
注册