Possible Duplicate:
Why does column = NULL return no rows?
I am trying to query a row from mysql database where value of certain column is null, here is my query:
SELECT * FROM `mytable` WHERE mycolumn=null
Actually I am using Boolean column as a three way switch where 0,1 and null meant to be used for different results.
Above query is returning a zero result set and if I remove where mycolumn=null
thing, its returning right result with some rows having null value for the specified column.