Page 1 of 1

MySQL Query not returning NULL

Posted: Tue Jun 03, 2014 4:39 pm
by DavJans
"SELECT * FROM yard WHERE loc <>'Used'"

This will give me everything where loc is something other than Used, but it will not give any records where loc is NULL, what would you recommend?

Re: MySQL Query not returning NULL

Posted: Tue Jun 03, 2014 5:12 pm
by bangkok

Code: Select all

SELECT * FROM yard WHERE loc <>'Used or loc IS NULL
No ?

Re: MySQL Query not returning NULL

Posted: Tue Jun 03, 2014 6:40 pm
by DavJans
works great, thank you so much.