ClickHouse/tests/queries/0_stateless/02111_modify_table_comment.sql
2021-10-31 17:34:47 +03:00

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;