mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
14 lines
415 B
SQL
14 lines
415 B
SQL
DROP TABLE IF EXISTS merge_a;
|
|
DROP TABLE IF EXISTS merge_b;
|
|
DROP TABLE IF EXISTS merge_ab;
|
|
|
|
CREATE TABLE merge_a (x UInt8) ENGINE = StripeLog;
|
|
CREATE TABLE merge_b (x UInt8) ENGINE = StripeLog;
|
|
CREATE TABLE merge_ab AS merge(currentDatabase(), '^merge_[ab]$');
|
|
|
|
SELECT name FROM system.columns WHERE database = currentDatabase() AND table = 'merge_ab';
|
|
|
|
DROP TABLE merge_a;
|
|
DROP TABLE merge_b;
|
|
DROP TABLE merge_ab;
|