mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-08 15:31:57 +00:00
7 lines
315 B
SQL
7 lines
315 B
SQL
drop table if exists data;
|
|
create table data (key Int) engine=Memory();
|
|
-- NOTE: internal_replication is false, so INSERT will be done only into one shard
|
|
insert into function clusterAllReplicas(test_cluster_two_shards, currentDatabase(), data, rand()) values (2);
|
|
select * from data order by key;
|
|
drop table data;
|