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 →
计算不同参数值的精确数量。
uniqExact
uniq
uniqExact(x[, ...])
x
Tuple(T)
Array(T)
Date
DateTime
String
(U)Int*
Float*
Decimal
UInt64
CREATE TABLE example_data ( id UInt32, category String ) ENGINE = Memory; INSERT INTO example_data VALUES (1, 'A'), (2, 'B'), (3, 'A'), (4, 'C'), (5, 'B'), (6, 'A'); SELECT uniqExact(category) as exact_unique_categories FROM example_data;
┌─exact_unique_categories─┐ │ 3 │ └─────────────────────────┘
SELECT uniqExact(id, category) as exact_unique_combinations FROM example_data;
┌─exact_unique_combinations─┐ │ 6 │ └───────────────────────────┘
此页面对您有帮助吗?