mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Update settings.md
This commit is contained in:
parent
c51109d46e
commit
8f1f9415f9
@ -1897,11 +1897,8 @@ Query:
|
|||||||
|
|
||||||
```sql
|
```sql
|
||||||
CREATE TABLE x AS system.numbers ENGINE = MergeTree ORDER BY number;
|
CREATE TABLE x AS system.numbers ENGINE = MergeTree ORDER BY number;
|
||||||
|
|
||||||
CREATE TABLE x_dist AS x ENGINE = Distributed('test_cluster_two_shards_localhost', currentDatabase(), x);
|
CREATE TABLE x_dist AS x ENGINE = Distributed('test_cluster_two_shards_localhost', currentDatabase(), x);
|
||||||
|
|
||||||
INSERT INTO x_dist SELECT * FROM numbers(5) SETTINGS insert_shard_id = 1;
|
INSERT INTO x_dist SELECT * FROM numbers(5) SETTINGS insert_shard_id = 1;
|
||||||
|
|
||||||
SELECT * FROM x_dist ORDER BY number ASC;
|
SELECT * FROM x_dist ORDER BY number ASC;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user