I am getting query output as all Records when I put & and % sign in my search string
I am using oracle and mysql as a database
How I will avoid this ,
this is dynamically generated query snipit using java
WHERE 0 = 0 AND (LOWER (business_keywords) LIKE '%&%');
and
WHERE 0 = 0 AND (LOWER (business_keywords) LIKE '%%%');
Escape them:
You may need to provide your own escape character for this to be portable:
, since
MySQLtreats backslash as a special character whileOracledoes not.