I have the data above in myTable.(1) 'Homerun!' he yelled.
(2) "Homerun!" he yelled.
And I have key "homerun!"
Let's see the following code and its result.
Code:code1 where say like "%#key#' %" result1 (1) 'Homerun!' he yelled. code2 where say like "%#key#" %" result2 (2) "Homerun!" he yelled.
I like to produce record(1) and record(2) at a same time.
So I made the following code3, and it work fine when the key is "homerun!" or other words.
But above code seems make an SQL error when the key word is double quotation mark(").Code:code3 where (say like "%#key#' %") or (say like '%#key#" %') result3 (1) 'Homerun!' he yelled. (2) "Homerun!" he yelled.
Do you see why it makes an errors when the key is double quotation mark(")?
(Strangely, the key word the single quotation mark(') doesn't make an error. )
Thanks in Advance








Bookmarks