Skip to main content

MAP_KEYS

引入或更新: v1.2.429

返回一个映射中的键。

语法

MAP_KEYS( <map> )

参数

参数描述
<map>输入的映射。

返回类型

数组。

示例

SELECT MAP_KEYS({'a':1,'b':2,'c':3});

┌───────────────────────────────┐
│ map_keys({'a':1,'b':2,'c':3})
├───────────────────────────────┤
['a','b','c']
└───────────────────────────────┘
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today