I want to execute two queries, one for insertion and another one for updating. If insertion is successful then I have to update an entry. Is is possible to use PreparedStatement?
I also want to set parameters dynamically.
I want to execute two queries, one for insertion and another one for updating.
Share
You can set setAutoCommit to false, execute two separate statements and then commit the transaction manually.