SQL java get value assigned to auto increment primary key
- by iamrohitbanga
I have a primary key auto increment attribute in my table. I want to know the value assigned to it for a row that is inserted using statement.executeQuery(). How to achieve this in the best possible manner?