mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-16 20:53:27 +00:00
15 lines
488 B
MySQL
15 lines
488 B
MySQL
|
DROP TABLE IF EXISTS t1;
|
||
|
DROP TABLE IF EXISTS t2;
|
||
|
|
||
|
CREATE TABLE t1 (str String, dec Decimal64(8)) ENGINE = MergeTree ORDER BY str;
|
||
|
CREATE TABLE t2 (str String, dec Decimal64(8)) ENGINE = MergeTree ORDER BY dec;
|
||
|
|
||
|
INSERT INTO t1 SELECT toString(number), toDecimal64(number, 8) FROM system.numbers LIMIT 1000000;
|
||
|
SELECT count() FROM t1;
|
||
|
|
||
|
INSERT INTO t2 SELECT toString(number), toDecimal64(number, 8) FROM system.numbers LIMIT 1000000;
|
||
|
SELECT count() FROM t2;
|
||
|
|
||
|
DROP TABLE t1;
|
||
|
DROP TABLE t2;
|