mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 14:11:58 +00:00
10 lines
180 B
SQL
10 lines
180 B
SQL
DROP TABLE IF EXISTS test;
|
|
|
|
CREATE TABLE test (a UInt8) ENGINE = Memory;
|
|
|
|
INSERT INTO test VALUES (1), (2), (1), (3);
|
|
|
|
SELECT CASE WHEN a=1 THEN 0 END FROM test;
|
|
|
|
DROP TABLE test;
|