mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
10 lines
393 B
SQL
10 lines
393 B
SQL
-- Tags: shard
|
|
|
|
drop table if exists tab;
|
|
create table tab (val UInt8) engine = MergeTree order by val;
|
|
insert into function remote('127.0.0.2', currentDatabase(), tab) values (1);
|
|
insert into function remote('127.0.0.{2|3}', currentDatabase(), tab) values (2);
|
|
insert into function remote('127.0.0.{2|3|4}', currentDatabase(), tab) values (3);
|
|
select * from tab order by val;
|
|
drop table tab;
|