I have a record which has the following data:
id=123 ;
requested_by=Jackson ;
verify_status=NULL ;
i wish the record above as the result for the following query. However, it returns me 0 row.
$sql="SELECT * FROM spr WHERE requested_by IS NOT NULL AND verify_status!='Accept'";
I wanna select all records which the verify_status other than “Accept”.
I wonder is there something wrong with verify_status!=’Accept’? Please help.Thanks.
You need to handle those rows with a
NULLverify_status: