ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Hodge" <dyho...@gmail.com>
Subject Obtaining Generated Primary Keys
Date Fri, 15 Sep 2006 11:57:38 GMT
I am using Oracle and I am wondering if there is a way to obtain a trigger
generated Primary key after doing an INSERT with iBatis.

I know there is a selectKey function but that seems to work only if you have
a select statement, which makes sense.  Other databases have ways
for you to select the last_generated_id() but I do not think Oracle has this

Has anyone else had this problem or know of a work around?


David Y. Hodge

View raw message