ClickHouse/tests/queries/0_stateless/01374_if_nullable_filimonov.sql
2020-07-06 09:05:48 +03:00

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');