mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
15 lines
227 B
SQL
15 lines
227 B
SQL
SELECT CASE 1 WHEN 1 THEN 2 END;
|
|
|
|
SELECT id,
|
|
CASE id
|
|
WHEN 1 THEN 'Z'
|
|
END x
|
|
FROM (SELECT 1 as id);
|
|
|
|
SELECT id,
|
|
CASE id
|
|
WHEN 1 THEN 'Z'
|
|
ELSE 'X'
|
|
END x
|
|
FROM (SELECT 1 as id);
|