php - Mysql return empty rows if multi where condition with empty value -
php - Mysql return empty rows if multi where condition with empty value -
i have created table in name of folders table contain name,folderid,parentfolderid when write query homecoming empty rows
example 1 : query : select * folders_tbl parentresourceid='' result : expected
but have add together status in fail homecoming expected rows
example 2 : (issue) query : select * folders_tbl parentresourceid = '' , serviceid =1 , userid =1 result : returned empty result set table construction folderid bigint(20) serviceid int(11) userid bigint(20) foldername varchar(200) resourceid varchar(500) parentresourceid varchar createddate datetime modifieddate datetime shared int(11) istrashed int(11) isdeleted int(11) note : write query in phpmyadmin web ui
it seems have records contains null value. if use
parentresourceid null
in condition
php mysql database phpmyadmin mysql-workbench
Comments
Post a Comment