sql query to check if column is null or empty code example Example: check if value is null mysql SELECT * from TABLE where CODE IS NULL OR CODE!='C'