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

> 包含服务器支持的字典布局列表及其内置文档的系统表。

# system.dictionary_layouts

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

包含服务器支持的字典布局列表，以及每种布局的内置文档。字典布局决定字典如何存储在内存中 (或磁盘上) 以及如何被查找；它是在 `CREATE DICTIONARY` 查询的 `LAYOUT` 子句中指定的。

<div id="columns">
  ## 列
</div>

* `name` ([String](/zh/reference/data-types/index)) — 字典布局的名称，如 LAYOUT 子句中指定的那样。
* `is_complex` ([UInt8](/zh/reference/data-types/index)) — 该布局是否需要复杂键 (即由多个属性组成，或属于非整数类型的键) 。
* `description` ([String](/zh/reference/data-types/index)) — 对该字典布局作用的概括性描述。
* `syntax` ([String](/zh/reference/data-types/index)) — 在 CREATE DICTIONARY 查询的 LAYOUT 子句中指定该布局的方式。
* `examples` ([String](/zh/reference/data-types/index)) — 使用示例。
* `introduced_in` ([String](/zh/reference/data-types/index)) — 首次引入该布局的 ClickHouse 版本，格式为 major.minor。
* `related` ([Array(String)](/zh/reference/data-types/index)) — 相关字典布局的名称。

<div id="example">
  ## 示例
</div>

```sql title="Query" theme={null}
SELECT name, is_complex, syntax
FROM system.dictionary_layouts
WHERE name IN ('flat', 'hashed', 'complex_key_hashed')
ORDER BY name
```

```text title="Response" theme={null}
┌─name───────────────┬─is_complex─┬─syntax───────────────────────────────────────────────────┐
│ complex_key_hashed │          1 │ LAYOUT(COMPLEX_KEY_HASHED())                             │
│ flat               │          0 │ LAYOUT(FLAT([INITIAL_ARRAY_SIZE n] [MAX_ARRAY_SIZE n]))  │
│ hashed             │          0 │ LAYOUT(HASHED())                                         │
└────────────────────┴────────────┴──────────────────────────────────────────────────────────┘
```

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

* [字典布局](/zh/reference/statements/create/dictionary/layouts/overview) — 有关字典及其布局的信息。
