SQL 手册SQL 函数聚合函数SUM本页总览SUMSUMdescriptionSyntaxSUM(expr)用于返回选中字段所有值的和exampleMySQL > select sum(scan_rows) from log_statis group by datetime;+------------------+| sum(`scan_rows`) |+------------------+| 8217360135 |+------------------+keywordsSUM