mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-05 15:21:43 +00:00
7 lines
252 B
MySQL
7 lines
252 B
MySQL
|
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'; -- { serverError 36 }
|