how to get value saved in mysql database when the field is set as null code example Example: mysql where value is null SELECT * FROM contacts WHERE last_name IS NULL;