mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
11 lines
297 B
SQL
11 lines
297 B
SQL
DROP TABLE IF EXISTS partition_id;
|
|
|
|
CREATE TABLE IF NOT EXISTS partition_id (d Date DEFAULT '2000-01-01', x UInt64) ENGINE = MergeTree(d, x, 5);
|
|
|
|
INSERT INTO partition_id VALUES (100, 1), (200, 2), (300, 3);
|
|
|
|
SELECT _partition_id FROM partition_id ORDER BY x;
|
|
|
|
DROP TABLE IF EXISTS partition_id;
|
|
|