mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 05:52:05 +00:00
72b1339656
This reverts commit c65d1e5c70
.
32 lines
896 B
SQL
32 lines
896 B
SQL
DROP TABLE IF EXISTS table_from_remote;
|
|
DROP TABLE IF EXISTS table_from_select;
|
|
DROP TABLE IF EXISTS table_from_numbers;
|
|
|
|
CREATE TABLE table_from_remote AS remote('localhost', 'system', 'numbers');
|
|
|
|
SHOW CREATE TABLE table_from_remote;
|
|
|
|
ALTER TABLE table_from_remote ADD COLUMN col UInt8;
|
|
|
|
SHOW CREATE TABLE table_from_remote;
|
|
|
|
CREATE TABLE table_from_numbers AS numbers(1000);
|
|
|
|
SHOW CREATE TABLE table_from_numbers;
|
|
|
|
ALTER TABLE table_from_numbers ADD COLUMN col UInt8; --{serverError 48}
|
|
|
|
SHOW CREATE TABLE table_from_numbers;
|
|
|
|
CREATE TABLE table_from_select ENGINE = MergeTree() ORDER BY tuple() AS SELECT number from system.numbers LIMIT 1;
|
|
|
|
SHOW CREATE TABLE table_from_select;
|
|
|
|
ALTER TABLE table_from_select ADD COLUMN col UInt8;
|
|
|
|
SHOW CREATE TABLE table_from_select;
|
|
|
|
DROP TABLE IF EXISTS table_from_remote;
|
|
DROP TABLE IF EXISTS table_from_select;
|
|
DROP TABLE IF EXISTS table_from_numbers;
|