How to perform a SQL query for fields that are null (or not null)
For some reason when I use SQL I can never remember how to search for database table fields that are either NULL
or NOT NULL
. I always try to use the =
operator or something else.
So, as a note to myself, here’s an example of how to perform a SQL query and find all records where a field in a database table is NULL
: