mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
25 lines
375 B
SQL
25 lines
375 B
SQL
CREATE TABLE test
|
|
(
|
|
`x` Tuple(UInt64, UInt64)
|
|
)
|
|
ENGINE = MergeTree
|
|
ORDER BY x;
|
|
|
|
INSERT INTO test SELECT (number, number) FROM numbers(1000000);
|
|
|
|
SELECT COUNT() FROM test;
|
|
|
|
ALTER TABLE test DETACH PARTITION tuple();
|
|
|
|
ALTER TABLE test ATTACH PARTITION tuple();
|
|
|
|
SELECT COUNT() FROM test;
|
|
|
|
DETACH TABLE test;
|
|
|
|
ATTACH TABLE test;
|
|
|
|
SELECT COUNT() FROM test;
|
|
|
|
DROP TABLE test;
|