mysql if column value is null then code example
Example 1: if column value is null then in mysql
SELECT
contactname, IFNULL(bizphone, homephone) phone
FROM
contacts;
Example 2: check if value is null mysql
SELECT * from TABLE where CODE IS NULL OR CODE!='C'