Re: Problems with execute query with JDBC
Posted by: Bryan Baas
Date: January 21, 2005 02:40PM

Better yet, use PreparedStatement.executeUpdate().

executeUpdate returns the number of rows affected by the operation..

String SQLstr = "UPDATE such and such.... "
int rowAffected = pstmt.executeUpdate(SQLstr);

-Bryan

Options: ReplyQuote


Subject
Written By
Posted
Re: Problems with execute query with JDBC
January 21, 2005 02:40PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.