mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
14 lines
372 B
SQL
14 lines
372 B
SQL
DROP TABLE IF EXISTS x_1;
|
|
DROP TABLE IF EXISTS x_2;
|
|
DROP TABLE IF EXISTS x;
|
|
|
|
create table x_1 engine=Log as select * from numbers(10);
|
|
create table x_2 engine=Log as select * from numbers(10);
|
|
create table x engine=Merge(currentDatabase(), '^x_(1|2)$') as x_1;
|
|
|
|
select _table, count() from x group by _table order by _table;
|
|
|
|
DROP TABLE x_1;
|
|
DROP TABLE x_2;
|
|
DROP TABLE x;
|