mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 20:12:02 +00:00
10 lines
205 B
MySQL
10 lines
205 B
MySQL
|
DROP TABLE IF EXISTS test.test;
|
||
|
|
||
|
CREATE TABLE test.test (a UInt8) ENGINE = Memory;
|
||
|
|
||
|
INSERT INTO test.test VALUES (1), (2), (1), (3);
|
||
|
|
||
|
SELECT CASE WHEN a=1 THEN 0 END FROM test.test;
|
||
|
|
||
|
DROP TABLE test.test;
|