MAX
Descriptionβ
The MAX function returns the maximum value of the expression.
Syntaxβ
MAX(<expr>)
Parametersβ
Parameters | Description |
---|---|
expr | The expression needs to be obtained |
Return Valueβ
Returns the same data type as the input expression.
Exampleβ
select max(scan_rows) from log_statis group by datetime;
+------------------+
| max(`scan_rows`) |
+------------------+
| 4671587 |
+------------------+