rollback Method ()

Undoes all changes made in the current transaction and releases any database locks currently held by this SQLServerConnection object.

public void rollback()

异常

SQLServerException

备注

This rollBack method is specified by the rollBack method in the java.sql.Connection interface.

This method should be used only when auto-commit mode has been disabled.

另请参见

参考

SQLServerConnection Class

概念

rollback Method (SQLServerConnection)
SQLServerConnection Methods
SQLServerConnection Members