mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 14:02:21 +00:00
35 lines
588 B
SQL
35 lines
588 B
SQL
-- Tags: no-parallel
|
|
|
|
DROP DATABASE IF EXISTS 02111_modify_table_comment;
|
|
CREATE DATABASE 02111_modify_table_comment;
|
|
|
|
USE 02111_modify_table_comment;
|
|
|
|
CREATE TABLE t
|
|
(
|
|
`n` Int8
|
|
)
|
|
ENGINE = MergeTree
|
|
ORDER BY n
|
|
COMMENT 'this is a MergeTree table';
|
|
|
|
SHOW CREATE t;
|
|
|
|
ALTER TABLE t
|
|
MODIFY COMMENT 'MergeTree Table';
|
|
|
|
SHOW CREATE t;
|
|
|
|
CREATE TABLE t_merge AS t
|
|
ENGINE = Merge('02111_modify_table_comment', 't')
|
|
COMMENT 'this is a Merge table';
|
|
|
|
SHOW CREATE t_merge;
|
|
|
|
ALTER TABLE t_merge
|
|
MODIFY COMMENT 'Merge Table';
|
|
|
|
SHOW CREATE t_merge;
|
|
|
|
DROP DATABASE 02111_modify_table_comment;
|