Skip to main content

MIN

Description​

The MIN function returns the minimum value of the expression.

Syntax​

MIN(<expr>)

Parameters​

ParametersDescription
<expr>The expression needs to be obtained

Return Value​

Returns the same data type as the input expression.

Example​

select MIN(scan_rows) from log_statis group by datetime;
+------------------+
| MIN(`scan_rows`) |
+------------------+
| 0 |
+------------------+