mysql default null code example
Example 1: mysql select default if null
IFNULL(MAX(EMAIL), "[email protected]") as email
Example 2: mysql set value as null
UPDATE table SET field = NULL WHERE something = something
IFNULL(MAX(EMAIL), "[email protected]") as email
UPDATE table SET field = NULL WHERE something = something