Skip to main content
Version: Latest-3.2

max

Description

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