Skip to content

Latest commit

 

History

History
executable file
·
29 lines (20 loc) · 320 Bytes

File metadata and controls

executable file
·
29 lines (20 loc) · 320 Bytes

SUM

description

Syntax

SUM(expr)

用于返回选中字段所有值的和

example

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

keyword

SUM