ClickHouse/docs/ja/sql-reference/statements/alter/named-collection.md
2024-11-18 11:58:58 +09:00

807 B

slug sidebar_label
/ja/sql-reference/statements/alter/named-collection NAMED COLLECTION

import CloudNotSupportedBadge from '@theme/badges/CloudNotSupportedBadge';

ALTER NAMED COLLECTION

このクエリは既存の名前付きコレクションを変更することを目的としています。

構文

ALTER NAMED COLLECTION [IF EXISTS] name [ON CLUSTER cluster]
[ SET
key_name1 = 'some value' [[NOT] OVERRIDABLE],
key_name2 = 'some value' [[NOT] OVERRIDABLE],
key_name3 = 'some value' [[NOT] OVERRIDABLE],
... ] |
[ DELETE key_name4, key_name5, ... ]

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

ALTER NAMED COLLECTION foobar SET a = '2' OVERRIDABLE, c = '3';

ALTER NAMED COLLECTION foobar DELETE b;