16 Feb
2014
16 Feb
'14
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