mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-18 22:40:50 +00:00
6 lines
278 B
MySQL
6 lines
278 B
MySQL
|
SELECT 1 ? 1 : 0;
|
||
|
SELECT 0 ? not_existing_column : 1 FROM system.numbers LIMIT 1;
|
||
|
SELECT if(1, if(0, not_existing_column, 2), 0) FROM system.numbers LIMIT 1;
|
||
|
|
||
|
SELECT (SELECT hasColumnInTable('system', 'numbers', 'not_existing')) ? not_existing : 42 FROM system.numbers LIMIT 1;
|