In a database, among the fields, I have two fields which are picName and UserName.
The picName can have a NULL value, a picture’s name or it can be empty.
I want to query the userName of those entries whose picName is either NULL or empty.
I tried these commands separately
Select userName from user where picName = ''
Select userName from user where picName IS NULL
But I want to get both the results in 1 query.
I tried using IN operator like this
Select userName from user where picName IN ('' , IS NULL)
But it didn’t work.
How should I do it…?
use
ORif you have multiple filters in your condition