ClickHouse/dbms/tests/queries/0_stateless/00688_case_without_else.sql

10 lines
210 B
MySQL
Raw Normal View History

2019-06-03 17:36:27 +00:00
DROP TABLE IF EXISTS test_00688;
2018-08-22 15:17:40 +00:00
2019-06-03 17:36:27 +00:00
CREATE TABLE test_00688 (a UInt8) ENGINE = Memory;
2018-08-22 15:17:40 +00:00
2019-06-03 17:36:27 +00:00
INSERT INTO test_00688 VALUES (1), (2), (1), (3);
2018-08-22 15:17:40 +00:00
2019-06-03 17:36:27 +00:00
SELECT CASE WHEN a=1 THEN 0 END FROM test_00688;
2018-08-22 15:17:40 +00:00
2019-06-03 17:36:27 +00:00
DROP TABLE test_00688;