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

# max

> max 返回表达式的最大值。

返回 expr 表达式的最大值。

## 语法

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

## 参数说明

`epxr`: 被选取的表达式。

## 返回值说明

返回值为数值类型。

## 示例

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


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