Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> replace ' with '' ???
Hi,
I apologize it might be a wrong place to post the question, but since it's the only list I know ...
You know when you insert a'b into db, you got to
change it to a''b, our value is from jsp, so I have
this
request.getParameter("p_location_name").toUpperCase().trim(),
in case there is ' in it, I need to replace it with
''. How to do this in jsp, I tried
string.replace('\'','\'\''), replace("'","''"),
replace("\'","\'\'"), all sorts stuff and doesn't
work. We are using jdk 1.3.1. Any suggestion??
Thank you!
Janet
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Tue Sep 16 2003 - 14:44:36 CDT