SUM
description
Syntax
SUM(expr)
用于返回选中字段所有值的和
example
MySQL > select sum(scan_rows) from log_statis group by datetime;
+------------------+
| sum(`scan_rows`) |
+------------------+
| 8217360135 |
+------------------+
keywords
SUM
SUM(expr)
用于返回选中字段所有值的和
MySQL > select sum(scan_rows) from log_statis group by datetime;
+------------------+
| sum(`scan_rows`) |
+------------------+
| 8217360135 |
+------------------+
SUM