ValuesNULL checked using IS NULL
you should use:
IF (SELECT NULL) IS NULL
PRINT 1
ELSE
PRINT 2
from the manual :
To search for column values that are NULL, you cannot use the expr = NULL test. The following statement does not return rows, because expr = NULL will never be true for any expression
source
share