Dear All,
     I want to search an Oracle number through a prepared statement.
Could you tell me how to map the String to the Oracle number please?

The code I used:

String myStr = "SELECT CUSTOMERS.NUMBER FROM CUSTOMERS WHERE
CUSTOMERS.NUMBER = ?";

PreparedState selectStatement = con.prepareStatement(selectStr);
selectStatement.setString(1,myStr);// How to map the Sting to number?
  // I tried String, int and NUMERIC with no luck. :(

Could you give me some help please?

Regards,

Fred
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.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://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

Reply via email to