I have to do some queries on a messy database. Some columns are filled with either null
or an empty string. I can do a query like this:
select * from a where b is not null and b <> '';
But is there a shortcut for this case? (match every "not empty" value) Something like:
select * from a where b is filled;
Just:
where b <> ''
will do what you want as null <> ''
is null and the row will not be returned
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With