The ISNULL() function returns 1 if the expression sent as a parameter is NULL; otherwise, it returns 0.
Figure 1 shows a visual representation of the ISNULL() function.
ISNULL(exp)
The ISNULL() function takes the expression as a parameter.
The ISNULL() function returns 1 if the expression sent as a parameter is NULL; otherwise, it returns 0.
-- NULL expressionSELECT ISNULL(NULL);-- not NULL expressionSELECT ISNULL('educative');SELECT ISNULL(12345);