使用指南SQL 手册SQL 函数聚合函数SUM本页总览SUMSUM description Syntax SUM(expr) 用于返回选中字段所有值的和 example MySQL > select sum(scan_rows) from log_statis group by datetime;+------------------+| sum(`scan_rows`) |+------------------+| 8217360135 |+------------------+ keywords SUM