I have a simple query for my table:
SELECT * from delivery_receipts WHERE siid='';
This table's unique key is drid, (irrelevant for this question)..
The targeted column (siid
) is an int(11)
field, non index and non unique...
Anyway my problem is that, when I run this, mysql returns ALL ROWS that has:
SELECT drid,siid from delivery_receipts WHERE siid='0'
But of course if I search with the siid
specified, only the rows w/ that siid
match comes up....
So it seems my table is returning a match on all rows that has "0" when searching for ''