跳至主要内容

命名集合

ClickHouse 云不支持

CREATE NAMED COLLECTION

创建一个新的命名集合。

语法

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

示例

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

相关语句

另请参阅