mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
6 lines
310 B
SQL
6 lines
310 B
SQL
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);
|
|
DROP TABLE enums;
|