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

# maxSimpleState

> maxSimpleState 组合器使用示例

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

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

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

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

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

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