mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-18 22:40:50 +00:00
6 lines
293 B
MySQL
6 lines
293 B
MySQL
|
DROP TABLE IF EXISTS enums;
|
||
|
CREATE TABLE enums AS VALUES('x Enum8(\'hello\' = 0, \'world\' = 1, \'foo\' = -1), y String', ('hello', 'find me'), (0, 'and me'), (-1, 'also me'), ('world', 'don\'t find me'));
|
||
|
SELECT y FROM enums WHERE x IN (0, -1);
|
||
|
SELECT y FROM enums WHERE x IN ('hello', -1);
|
||
|
|