Files
doris/docs/documentation/en/sql-reference/sql-functions/aggregate-functions/count_EN.md
xy720 7a0c7f45b2 Add English documents for Doris (#1719)
The english documents is translated by machine. So It may has some mistake.
We will fix them later
2019-08-29 13:47:15 +08:00

710 B

COUNT

Description '35;'35;' 35; Syntax

COUNT([DISTINCT] expr)

Number of rows used to return the required rows

'35;'35; example

MySQL > select count(*) from log_statis group by datetime;
+----------+
| count(*) |
+----------+
| 28515903 |
+----------+

MySQL > select count(datetime) from log_statis group by datetime;
+-------------------+
count (`datetime') 1244;
+-------------------+
|         28521682  |
+-------------------+

MySQL > select count(distinct datetime) from log_statis group by datetime;
+-------------------------------+
| count(DISTINCT `datetime`)    |
+-------------------------------+
|                       71045   |
+-------------------------------+

##keyword COUNT