mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
15 lines
227 B
MySQL
15 lines
227 B
MySQL
|
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);
|