mysql, где значение ноль
SELECT *
FROM contacts
WHERE last_name IS NULL;
Saf1
SELECT *
FROM contacts
WHERE last_name IS NULL;
SELECT * from TABLE where CODE IS NULL OR CODE!='C'