I wish to know how to get the id of the last updated row in java? I know how to insert and update records in a database and retrieve the last inserted id of an insert statement but not how to do the same with an update statement? To update a record i assign a variable with the following command:
If I wan't the last inserted id from an insert statement i would write something like this:
Now how do you retrive the last inserted id after an update statement? My first guess is that you have to use some kind of a query / sub-query-statement for this. But I am still struggling at a very harsh level with my sql so I am very greatful for any kind of response here. Thank you for reading!