mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +00:00
13 lines
321 B
MySQL
13 lines
321 B
MySQL
|
DROP TABLE IF EXISTS t_local;
|
||
|
DROP TABLE IF EXISTS t_dist;
|
||
|
|
||
|
create table t_local(a int) engine Log;
|
||
|
create table t_dist (a int) engine Distributed(test_shard_localhost, currentDatabase(), 't_local', cityHash64(a));
|
||
|
|
||
|
set insert_distributed_sync = 1;
|
||
|
|
||
|
insert into t_dist values (1);
|
||
|
|
||
|
DROP TABLE t_local;
|
||
|
DROP TABLE t_dist;
|