The table has a field which contains double pipes "||"
I’m not sure how to get the query to recognise the pipes. I guess they are not being interpreted as string literals.
WHERE field LIKE '||%value%||'
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.
The pipe character has no special meaning, neither in a string literal, nor in a
likepattern.Are you really looking for a value that starts and ends with two pipe characters, and contains
valuesomehere between them? For examle||asdfvalueqerty||.If you are looking for a value that contains
||value||, you would use the pattern'%||value||%'instead.