PDF (US Ltr)
- 5.1Mb
PDF (A4)
- 5.1Mb
HTML Download (TGZ)
- 2.7Mb
HTML Download (Zip)
- 2.7Mb
This method sends a ROLLBACK
statement to the
MySQL server, undoing all data changes from the current
transaction. By default, Connector/Python does not autocommit, so it is
possible to cancel transactions when using transactional storage
engines such as InnoDB
.
>>> cursor.execute("INSERT INTO employees (first_name) VALUES (%s)", ('Jane'))
>>> cnx.rollback()