Question
One single tick in select string?
I'm trying to run a select statement that uses a dynamic AND
clause that looks like this:
AND b.txt_value = 'Things I can't do at home'
As you can see, I have a lone/solo single quote in the word can't. I tried preservesinglequotes but that didn't help (I believe you need matching single quotes for that). I can't change the data, so I'm hoping there's a CF function I'm not aware of that can fix this. The SQL error is of course:
ORA-00933: SQL command not properly ended
Many thanks in advance for any help anyone can provide!
Dave
AND b.txt_value = 'Things I can't do at home'
As you can see, I have a lone/solo single quote in the word can't. I tried preservesinglequotes but that didn't help (I believe you need matching single quotes for that). I can't change the data, so I'm hoping there's a CF function I'm not aware of that can fix this. The SQL error is of course:
ORA-00933: SQL command not properly ended
Many thanks in advance for any help anyone can provide!
Dave