Re: preparedStatement.getGeneratedKeys() exception.
You're making things too complex ;)
If you're usng an updatable result set, just make sure the primary key is part of your select...When you create an updatable result set, when you use ResultSet.insertRow(), the driver will automatically populate the value for you, then you just call ResultSet.getInt() on the updatable result row's primary key column.
However, with your code, I still think you're confused about how to utilize an UpdatableResultSet, since I don't see you actually trying to create one with your example code.
Subject
Written By
Posted
November 04, 2004 11:39AM
November 04, 2004 01:26PM
November 04, 2004 04:07PM
Re: preparedStatement.getGeneratedKeys() exception.
November 04, 2004 08:19PM
November 05, 2004 01:07AM
November 05, 2004 09:39AM
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.