> ## 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.

> يعرض بيانات dictionary كجدول في ClickHouse. ويعمل بنفس طريقة محرك Dictionary.

# dictionary

يعرض بيانات [dictionary](/ar/reference/statements/create/dictionary) كجدول في ClickHouse. ويعمل بنفس طريقة محرك [Dictionary](/ar/reference/engines/table-engines/special/dictionary).

<div id="syntax">
  ## الصيغة
</div>

```sql theme={null}
dictionary('dict')
```

<div id="arguments">
  ## الوسيطات
</div>

* `dict` — اسم dictionary. [String](/ar/reference/data-types/string).

<div id="returned_value">
  ## القيمة المعادة
</div>

جدول في ClickHouse.

<div id="examples">
  ## أمثلة
</div>

جدول الإدخال `dictionary_source_table`:

```text theme={null}
┌─id─┬─value─┐
│  0 │     0 │
│  1 │     1 │
└────┴───────┘
```

أنشئ dictionary:

```sql title="Query" theme={null}
CREATE DICTIONARY new_dictionary(id UInt64, value UInt64 DEFAULT 0) PRIMARY KEY id
SOURCE(CLICKHOUSE(HOST 'localhost' PORT tcpPort() USER 'default' TABLE 'dictionary_source_table')) LAYOUT(DIRECT());
```

```sql title="Query" theme={null}
SELECT * FROM dictionary('new_dictionary');
```

```text title="Response" theme={null}
┌─id─┬─value─┐
│  0 │     0 │
│  1 │     1 │
└────┴───────┘
```

<div id="related">
  ## مواضيع ذات صلة
</div>

* [محرك Dictionary](/ar/reference/engines/table-engines/special/dictionary)
