> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# min

> Returns the minimum value of the expr expression.

Returns the minimum value of the expr expression.

## Syntax

```Haskell theme={null}
MIN(expr)
```

## Examples

```plain text theme={null}
MySQL > select min(scan_rows)
from log_statis
group by datetime;
+------------------+
| min(`scan_rows`) |
+------------------+
|                0 |
+------------------+
```

## keyword

MIN


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.