หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Applies to:
Databricks SQL
Databricks Runtime
Returns an unordered array containing the keys of map.
Syntax
map_keys(map)
Arguments
map: A MAP expression.
Returns
An ARRAY where the element type matches the map key type.
Examples
> SELECT map_keys(map(1, 'a', 2, 'b'));
[1,2]