rollback() Method

Performs a rollback on the connection.

Syntax

connection.rollback()

Remarks

By default, changes are committed before the rollback is performed. Change the autocommit setting with the setautocommit method.