ClickHouse/tests/queries/0_stateless/02111_modify_table_comment.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
588 B
MySQL
Raw Normal View History

2021-10-31 14:34:47 +00:00
-- Tags: no-parallel
2021-10-31 12:18:22 +00:00
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;