Results 1 to 2 of 2
- 08-14-2012, 05:50 PM #1
Member
- Join Date
- Dec 2010
- Posts
- 57
- Rep Power
- 0
How to retrieve last inserted id from MS access 2003
How to retrieve last inserted id from MS access 2003 in java
im getting UnsupportedOperationExceptionJava Code:try(Statement st=con.createStatement();){ int record = st.executeUpdate(query, Statement.RETURN_GENERATED_KEYS); ResultSet result = st.getGeneratedKeys(); int row = 0; if (result.next()) { row = result.getInt("sale_purchase_book_id"); } if(result != null) result.close(); return row; }
Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException
please help me.
- 08-14-2012, 06:31 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,477
- Rep Power
- 16
Similar Threads
-
Filling a JTable from a Access 2003 DB Table on Button Action Event
By Fargo94 in forum New To JavaReplies: 0Last Post: 05-14-2012, 04:57 PM -
data not inserted in tables
By me.anchit in forum Advanced JavaReplies: 6Last Post: 09-30-2011, 03:02 PM -
Data not inserted into an object
By LoViNgHeArTy in forum New To JavaReplies: 11Last Post: 06-28-2011, 05:51 AM -
count inserted line in database
By tedy2808 in forum New To JavaReplies: 3Last Post: 08-16-2010, 10:57 AM -
IE crashing on windows 2003 64 bit OS while loading applet java 6
By DevzAbhi in forum Advanced JavaReplies: 0Last Post: 07-29-2008, 01:19 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks