2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE IF EXISTS partition_id;
|
2018-09-10 10:20:21 +00:00
|
|
|
|
2022-06-23 10:58:34 +00:00
|
|
|
set allow_deprecated_syntax_for_merge_tree=1;
|
2019-04-16 14:13:13 +00:00
|
|
|
CREATE TABLE IF NOT EXISTS partition_id (d Date DEFAULT '2000-01-01', x UInt64) ENGINE = MergeTree(d, x, 5);
|
2018-09-10 10:20:21 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
INSERT INTO partition_id VALUES (100, 1), (200, 2), (300, 3);
|
2018-09-10 10:20:21 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
SELECT _partition_id FROM partition_id ORDER BY x;
|
2018-09-10 10:20:21 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE IF EXISTS partition_id;
|
2018-09-10 10:20:21 +00:00
|
|
|
|