Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> [HelpMe] Is there a problem in using PreparedStatement of JDBC with ORACLE ?

[HelpMe] Is there a problem in using PreparedStatement of JDBC with ORACLE ?

From: Hee-Chul Moon <hchmoon_at_seri.re.kr>
Date: Mon, 04 May 1998 15:57:50 +0900
Message-ID: <354D66EE.4BAF8D1D@seri.re.kr>


Hi,

i have a problem in using PreparedStatement of JDBC with ORACLE.

Very Simple example would not work correctly: like the below.  

        PreparedStatement updateSales;
        updateSales = _con.prepareStatement(
                "UPDATE COFFEES SET SALES = ? WHERE COF_NAME = ?";
        updateSales.setInt(1, 999);
        updateSales.setString(2, "Colombian");
        updateSales.executeUpdate();

When executing the above code, No warnings and exceptions occur. However, the matching value was not modified. What's the problem ?

Is there any problem in preparedStatement with ORACLE ?

Please, would you send me a simple and working example with ORACLE ?

Thanks in advance.

hchmoon_at_seri.re.kr Received on Mon May 04 1998 - 01:57:50 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US