Re: preparedStatement.getGeneratedKeys() exception.
I am not trying to update a row, I am trying to insert a row and get the auto-gen-key back for the newly inserted row via getGeneratedKeys() after the pstmt.execute() is called.
In this case I inserted a new row for dp_objtype and expect to get the objtypeid back in the ResultSet of getGeneratedKeys().
Maybe my question is not to expect to use the updateable resultset, but why did pstmt.execute() expect an updateable resultset when the Connection.preparedStatement(string, return_auto_genkey) is used. When I use pstmt returned from Connection.preparedStatement(string), things work; but I cannot get the generated key.
-alex
Subject
Written By
Posted
November 04, 2004 11:39AM
November 04, 2004 01:26PM
November 04, 2004 04:07PM
November 04, 2004 08:19PM
November 05, 2004 01:07AM
November 05, 2004 09:39AM
Re: preparedStatement.getGeneratedKeys() exception.
November 05, 2004 11:13AM
November 05, 2004 03:57PM
November 06, 2004 02:19AM
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.