check if value is null mysql 5.7 code example Example: check if value is null mysql SELECT * from TABLE where CODE IS NULL OR CODE!='C'