15 Feb
2014
15 Feb
'14
1:10 p.m.
Hi, How to get the last inserted id with JDBC, i see its supported in mapi library but i am unable to get it with JDBC interface using st.getGeneratedKeys(). Thanks
16 Feb
16 Feb
7:30 a.m.
On 15-02-2014 15:10:01 +0200, imad hajj chahine wrote:
How to get the last inserted id with JDBC, i see its supported in mapi library but i am unable to get it with JDBC interface using st.getGeneratedKeys().
JdbcClient uses Statement.getGeneratedKeys() as well, e.g.: ResultSet rs = stmt.getGeneratedKeys(); if (rs.next()) { out.println("last generated key: " + rs.getString(1)); } Fabian
3968
Age (days ago)
3969
Last active (days ago)
1 comments
2 participants
participants (2)
-
Fabian Groffen
-
imad hajj chahine