mysql - Query not working when looking for null values on the where clause -


i got query works perfectly:

select folder.folderid, folder.foldername folder inner join collaborators on collaborators.folderid = folder.folderid collaborators.userid = 23 

but when added on clause: "and folder.parent = null" doesnt work. complete query is:

select folder.folderid, folder.foldername folder inner join collaborators on collaborators.folderid = folder.folderid collaborators.userid = 23 , folder.parent = null 

does know whats going on? thanks

when dealing null, cannot use = or <> since values unknown instead use is null or is not null,

where collaborators.userid = 23 , folder.parent null 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -