在Connection中设置executeUpdate()不要自动提交的代码是()。

在Connection中设置executeUpdate()不要自动提交的代码是()。

A.connection.rollback()

B.connection.close()

C.connection.setAutoCommit(false)

D. connection.setAutoCommit(true)

正确答案:connection.setAutoCommit(false)

猜你喜欢