mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
6 lines
375 B
SQL
6 lines
375 B
SQL
DROP TABLE IF EXISTS mass_table_117;
|
|
CREATE TABLE mass_table_117 (`dt` Date, `site_id` Int32, `site_key` String) ENGINE = MergeTree(dt, (site_id, site_key, dt), 8192);
|
|
INSERT INTO mass_table_117 SELECT * FROM generateRandom('`dt` Date,`site_id` Int32,`site_key` String', 1, 10, 2) LIMIT 100;
|
|
SELECT count(), sum(cityHash64(*)) FROM mass_table_117;
|
|
DROP TABLE mass_table_117;
|