How I should write my sql query in android that special characters work correct. For example when I filter String with like which has % symbol, it doesn’t work correct.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For
LIKE, you choose in the query what to escape them with;…will only match the actual character
%since it’s been escaped with the^that is give in the ESCAPE clause.SQLfiddle here.