ClickHouse/docs/en/sql-reference/statements/create/named-collection.md
Salvatore Mesoraca 7d206cbc3c
NamedCollections: prevent fields overriding in functions call
Add syntax in SQL and XML to mark specific fields to allow
override or not.
Also add a new setting to control the default behaviour when
overriding support is not specified.
2023-11-09 17:25:16 +01:00

804 B

slug sidebar_label
/en/sql-reference/statements/create/named-collection NAMED COLLECTION

CREATE NAMED COLLECTION

Creates a new named collection.

Syntax

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],
...

Example

CREATE NAMED COLLECTION foobar AS a = '1', b = '2' OVERRIDABLE;

Related statements

See Also