ClickHouse/tests/queries/0_stateless/01310_enum_comparison.sql
2024-12-04 17:12:55 +08:00

7 lines
230 B
SQL

CREATE TEMPORARY TABLE enum (x Enum('hello' = 1, 'world' = 2));
INSERT INTO enum VALUES ('hello');
SELECT count() FROM enum WHERE x = 'hello';
SELECT count() FROM enum WHERE x = 'world';
SELECT count() FROM enum WHERE x = 'xyz';