mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
11 lines
582 B
SQL
11 lines
582 B
SQL
DROP TABLE IF EXISTS base;
|
|
DROP TABLE IF EXISTS copy_without_comment;
|
|
DROP TABLE IF EXISTS copy_with_comment;
|
|
|
|
CREATE TABLE base (a Int32) ENGINE = TinyLog COMMENT 'original comment';
|
|
CREATE TABLE copy_without_comment AS base;
|
|
CREATE TABLE copy_with_comment AS base COMMENT 'new comment';
|
|
|
|
SELECT comment FROM system.tables WHERE database = currentDatabase() AND name = 'base';
|
|
SELECT comment FROM system.tables WHERE database = currentDatabase() AND name = 'copy_without_comment';
|
|
SELECT comment FROM system.tables WHERE database = currentDatabase() AND name = 'copy_with_comment'; |