SQL ManualFunctionsAggregate FunctionsSUMOn this pageSUMSUMDescriptionSyntax:Sum (Expr)This function is used to return the sum of all values of the selected field.ExampleMySQL > select sum(scan_rows) from log_statis group by datetime;+------------------+| sum(`scan_rows`) |+------------------+| 8217360135 |+------------------+KeywordsSUM