mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
8 lines
250 B
SQL
8 lines
250 B
SQL
DROP TABLE IF EXISTS mt_pk;
|
|
|
|
CREATE TABLE mt_pk ENGINE = MergeTree PARTITION BY d ORDER BY x
|
|
AS SELECT toDate(number % 32) AS d, number AS x FROM system.numbers LIMIT 10000010;
|
|
SELECT x FROM mt_pk ORDER BY x ASC LIMIT 10000000, 1;
|
|
|
|
DROP TABLE mt_pk;
|