mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-16 04:32:33 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
15 lines
488 B
SQL
15 lines
488 B
SQL
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;
|