…nullable-expr… IS NULL
…nullable-expr… IS NOT NULL
t? -> BOOL
Test any nullable operand for NULL. Always returns a non-nullable boolean.
Notice that this is not equivalent to comparing a value to NULL using the equality operator. Indeed, NULL propagates through the equality operator and the result of such a comparison would merely be NULL.
| expression | evaluates to |
|---|---|
| NULL IS NULL | TRUE |
| NULL IS NOT NULL | FALSE |
| (NULL = 1) IS NULL | TRUE |