Subject | Getting back auto-generated primary key... |
---|---|
Author | jf_richard69 |
Post date | 2004-12-10T15:44:05Z |
Hi,
In my database, most of my table have an auto generated primary key. I
have a generator and a trigger on insert that is working perfectly
well.
What I need to do, is when I create a new record, I need to know what
the primary key of this newly created record is. I've tried with the
getGeneratedKeys method of the PreparedStatement this is there for
this reason, but it seem that this method as not been implemented in
the latest version of the JDBC driver.
What should I use to get back this value?
I really need a solution for this problem.
Thanks,
Jean-Francois
In my database, most of my table have an auto generated primary key. I
have a generator and a trigger on insert that is working perfectly
well.
What I need to do, is when I create a new record, I need to know what
the primary key of this newly created record is. I've tried with the
getGeneratedKeys method of the PreparedStatement this is there for
this reason, but it seem that this method as not been implemented in
the latest version of the JDBC driver.
What should I use to get back this value?
I really need a solution for this problem.
Thanks,
Jean-Francois