Files
doris/docs/documentation/cn/sql-reference/sql-functions/aggregate-functions/count_distinct.md
xy720 4c2a3d6da4 Merge Help document to documentation (#1586)
Help document collation (integration of help and documentation documents)
2019-08-07 21:31:53 +08:00

428 B
Executable File

COUNT_DISTINCT

description

Syntax

COUNT_DISTINCT(expr)

用于返回满足要求的行的数目,或者非NULL行的数目

example

MySQL > select count_distinct(query_id) from log_statis group by datetime;
+----------------------------+
| count_distinct(`query_id`) |
+----------------------------+
|                        577 |
+----------------------------+

##keyword COUNT_DISTINCT,COUNT,DISTINCT