> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-fix-nav-issues.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# maxSimpleState

> maxSimpleState 组合器使用示例

<div id="description">
  ## 描述
</div>

[`SimpleState`](/zh/reference/functions/aggregate-functions/combinators#-simplestate) 组合器可应用于 [`max`](/zh/reference/functions/aggregate-functions/max)
函数，用于返回所有输入值中的最大值。返回结果的
类型为 `SimpleAggregateState`。

<div id="example-usage">
  ## 示例用法
</div>

[`minSimpleState`](/zh/guides/clickhouse/examples/aggregate-function-combinators/minSimpleState#example-usage) 中的示例
展示了 `maxSimpleState` 和 `minSimpleState` 的用法。

<div id="see-also">
  ## 另请参阅
</div>

* [`max`](/zh/reference/functions/aggregate-functions/max)
* [`SimpleState 组合器`](/zh/reference/functions/aggregate-functions/combinators#-simplestate)
* [`SimpleAggregateFunction 类型`](/zh/reference/data-types/simpleaggregatefunction)
