SUM

description

Syntax

SUM(expr)

It resurns the sum of all values of the selected fields.

example

MySQL > select sum(scan_rows)
from log_statis
group by datetime;
+------------------+
| sum(`scan_rows`) |
+------------------+
|       8217360135 |
+------------------+

keyword

SUM