If the expression is NULL, the IFNULL() function returns a specified alternative value. This function returns the expression if it is NOT NULL.
This function is typically used to return a different value in the event that a column’s value contains any NULLs.
Syntax:
IFNULL(expression, alt_value)
Example:
SELECT IFNULL(NULL, “bigdatansql.com”);
Result: bigdatansql.com