跳转到内容

返回不同值的个数,等同于 COUNT(DISTINCT)。

func.multi_distinct_count(get_column(table, 'dept'))
func.multi_distinct_count(get_column(table, 'department'))
┌───┐
│ 5 │
└───┘
MULTI_DISTINCT_COUNT(<dept>)
SELECT MULTI_DISTINCT_COUNT(department) FROM employees;
┌───┐
│ 5 │
└───┘