Use a prepared statement like this
PreparedStatement pStmt=conn.prepareStatement("Insert into test values
(1,?)");
pStmt.setString(1,"This is a statement with a single quote ' hope you can
see it");
pStmt.execute();
Clayton
----- Original Message -----
From: "R.Muthukumar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 21, 2001 12:22 PM
Subject: Problem in inserting data into Oracle
> Hi!
> From the Jsp page, I am trying to update a record in oracle . Since oracle
> doesn't allow to enter values like the string given below...
> This is the string with check's and result's.
> I have to convert the single quotes into double quotes and insert..? Can
> anyone throw some light on how to go about that?
> Thanks in advance..
> Muthu
>
>
===========================================================================
> 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://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
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://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets