2020-04-08 14:22:25 +00:00
|
|
|
---
|
|
|
|
machine_translated: true
|
|
|
|
machine_translated_rev: b111334d6614a02564cf32f379679e9ff970d9b1
|
|
|
|
toc_folder_title: "\u5B57\u5178"
|
|
|
|
toc_priority: 35
|
|
|
|
toc_title: "\u5BFC\u8A00"
|
|
|
|
---
|
|
|
|
|
|
|
|
# 字典 {#dictionaries}
|
|
|
|
|
|
|
|
字典是一个映射 (`key -> attributes`)这是方便各种类型的参考清单。
|
|
|
|
|
|
|
|
ClickHouse支持使用可用于查询的字典的特殊功能。 这是更容易和更有效地使用字典与功能比 `JOIN` 与参考表。
|
|
|
|
|
2020-05-06 06:13:29 +00:00
|
|
|
[NULL](../../sql-reference/syntax.md#null-literal) 值不能存储在字典中。
|
2020-04-08 14:22:25 +00:00
|
|
|
|
|
|
|
ClickHouse支持:
|
|
|
|
|
2020-04-30 18:19:18 +00:00
|
|
|
- [内置字典](internal-dicts.md#internal_dicts) 具有特定的 [功能集](../../sql-reference/functions/ym-dict-functions.md).
|
2020-05-06 06:13:29 +00:00
|
|
|
- [插件(外部)字典](external-dictionaries/external-dicts.md#dicts-external-dicts) 用一个 [职能净额](../../sql-reference/functions/ext-dict-functions.md).
|
2020-04-08 14:22:25 +00:00
|
|
|
|
|
|
|
[原始文章](https://clickhouse.tech/docs/en/query_language/dicts/) <!--hide-->
|