i’m trying to do this query:
SELECT *
FROM TABLE
WHERE value1='THIS'S AN EXAMPLE'.
The problem is that apex inside content will give error on query. how can i solve it? can someone help me?
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.
Try escaping it like that:
where
''is 2 single quotes.But best would be to make this a parametrized query. If you’re running it from your code.