📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

MAP_KEYS



Returns the keys in a map.

Syntax

MAP_KEYS( <map> )

Arguments

ArgumentsDescription
<map>The input map.

Return Type

Array.

Examples

SELECT MAP_KEYS({'a':1,'b':2,'c':3}); ┌───────────────────────────────┐ │ map_keys({'a':1,'b':2,'c':3}) │ ├───────────────────────────────┤ │ ['a','b','c'] │ └───────────────────────────────┘

Was this page helpful?