Mega Code Archive

 
Categories / MySQL / Function
 

The following expression returns expr2 if expr1 is NULL, and expr1 otherwise

IFNULL(expr1, expr2) corresponds to IF(ISNULL(expr1), expr2, expr1)