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

> CREATE NAMED COLLECTION 参考文档

# CREATE NAMED COLLECTION

创建新的命名集合。

<Note>
  部分 ClickHouse Cloud 服务可启用通过 DDL 创建的命名集合。请联系 Support 确认可用性。
</Note>

**语法**

```sql theme={null}
CREATE NAMED COLLECTION [IF NOT EXISTS] name [ON CLUSTER cluster] AS
key_name1 = 'some value' [[NOT] OVERRIDABLE],
key_name2 = 'some value' [[NOT] OVERRIDABLE],
key_name3 = 'some value' [[NOT] OVERRIDABLE],
...
```

**示例**

```sql theme={null}
CREATE NAMED COLLECTION foobar AS a = '1', b = '2' OVERRIDABLE;
```

**相关语句**

* [CREATE NAMED COLLECTION](/zh/reference/statements/alter/named-collection)
* [DROP NAMED COLLECTION](/zh/reference/statements/drop#drop-function)

**另请参阅**

* [命名集合指南](/zh/concepts/features/configuration/server-config/named-collections)

**属于：** `CREATE`
