One way I did this was by using the ascii number for the single quote(') which is 39. 
That is:
INSERT INTO MYTABLE (TITLE) VALUES('Blah' + char(39) + 'blah' + char(39) + 'blah').

Joya

Alex Kachanov wrote:

> How can I escape quotes in SQL string which may contain:
>
> INSERT INTO MYTABLE (TITLE) VALUES ('Blah'blah'blah')
>
> those single quotes throw an error
> is there easy way to replace those single quotes?
>
> with best wishes
> Alexander Kachanov
>
> ==========================================================================To 
>unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to