Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ClickHouse launches Claude-powered Agents and House Mates partner program at Open House 2026 Read more →
关于 ALTER TABLE … MODIFY COMMENT 的文档,用于 添加、修改或删除表注释
system.tables
SHOW CREATE TABLE
ALTER TABLE [db].name [ON CLUSTER cluster] MODIFY COMMENT 'Comment'
CREATE TABLE table_with_comment ( `k` UInt64, `s` String ) ENGINE = Memory() COMMENT 'The temporary table';
ALTER TABLE table_with_comment MODIFY COMMENT 'new comment on a table';
SELECT comment FROM system.tables WHERE database = currentDatabase() AND name = 'table_with_comment';
┌─comment────────────────┐ │ new comment on a table │ └────────────────────────┘
ALTER TABLE table_with_comment MODIFY COMMENT '';
┌─comment─┐ │ │ └─────────┘
COMMENT
ALTER DATABASE ... MODIFY COMMENT
此页面对您有帮助吗?