Skip to main content
Version: Stable-3.1

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