Thursday, 31 March 2016

Do I need to commit after an INSERT call in JDBC or does JDBC do it automatically in the DB ?


If your autoCommit flag - managed by Connection.setAutoCommit(boolean) method is false, you are required to call the commit() method otherwise there is no need.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.