Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ClickHouse launches Claude-powered Agents and House Mates partner program at Open House 2026 Read more →
计算存储于 Dynamic 列中的不同数据类型列表。
distinctDynamicTypes(dynamic)
dynamic
Dynamic
Array(String)
DROP TABLE IF EXISTS test_dynamic; CREATE TABLE test_dynamic(d Dynamic) ENGINE = Memory; INSERT INTO test_dynamic VALUES (42), (NULL), ('Hello'), ([1, 2, 3]), ('2020-01-01'), (map(1, 2)), (43), ([4, 5]), (NULL), ('World'), (map(3, 4)); SELECT distinctDynamicTypes(d) FROM test_dynamic;
┌─distinctDynamicTypes(d)──────────────────────────────────────────┐ │ ['Array(Int64)', 'Date', 'Int64', 'Map(UInt8, UInt8)', 'String'] │ └──────────────────────────────────────────────────────────────────┘
此页面对您有帮助吗?