If the database row is like this: country = \'usa\' and i query \"select * from data where country = \'usa \'\" it also returns this row. So its no
country = \'usa\'
\"select * from data where country = \'usa \'\"
The trailing spaces are omitted if the column is of type char or varchar; using like 'usa ' resolves the issue
char
varchar
like 'usa '