mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
8 lines
264 B
SQL
8 lines
264 B
SQL
DROP TABLE IF EXISTS test;
|
|
|
|
CREATE TABLE test(key FixedString(10)) ENGINE=MergeTree() PARTITION BY tuple() ORDER BY (key);
|
|
INSERT INTO test SELECT toString(intDiv(number, 8)) FROM numbers(100);
|
|
SELECT count() FROM test WHERE key = '1';
|
|
|
|
DROP TABLE IF EXISTS test;
|