ClickHouse/tests/queries/0_stateless/01503_fixed_string_primary_key.sql
2020-09-20 11:53:29 +08:00

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;