mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-05 23:31:24 +00:00
10 lines
252 B
SQL
10 lines
252 B
SQL
SELECT
|
|
UserID,
|
|
UserID = 0,
|
|
if(UserID = 0, 'delete', 'leave')
|
|
FROM VALUES('UserID Nullable(UInt8)', (2), (0), (NULL));
|
|
|
|
SELECT '---';
|
|
|
|
SELECT arrayJoin([0, 1, 3, NULL]) AS x, x = 0, if(x = 0, 'Definitely x = 0', 'We cannot say that x = 0');
|