ClickHouse/tests/queries/0_stateless/01503_fixed_string_primary_key.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
264 B
MySQL
Raw Normal View History

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;