JDBC and Oracle conn.commit and conn.setAutocommit not working properly

前端 未结 4 1451
-上瘾入骨i
-上瘾入骨i 2021-01-12 15:52

I have made a DBManager class as shown below

public class DBManager {


      public static String DRIVER = \"oracle.jdbc.driver.OracleDriver\";
      public         


        
4条回答
  •  没有蜡笔的小新
    2021-01-12 16:35

    Autocommit behavior depends on the underlying database you use. An unfortunately in your case Oracle's JDBC driver commits on close() by default.

提交回复
热议问题