Skip to main content
Version: Candidate-4.0

max

Returns the maximum value of the expr expression.

Syntax​

MAX(expr)

Examples​

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

keyword​

MAX