thanks stefanhei,
can you please elaborate a little on blind variables.
I am using name as a variable and most of them don't have apostrophe, only a couble
Unfortunately, with all the "single-quote" work-arounds of which I am aware (including using bind variables), the "cure" is as bad as (if not worse than) the "disease". If you have "only a couple" of cases where you are comparing a value that contains a single quote, and you are doing the comparison with manually entered literals (as it appears that you are), then the method that Stefan proposed is generally the least cumbersome.
If the problem surrounds end-users having to enter the value, then we can pursue other avenues, including bind variables.
Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
If they are using Business Objects, then how are they creating code that looks like your example:
Code:
select *
from XXXX x
where x.name= ' john''s '
Specifically, what item from a drop down list would look like, " ' john''s ' "?
I'm not trying to be dense or difficult...I'm just wanting to clearly understand your context so that I can suggest a solution that will best meet your need.
Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.