Name

rollback( )

Synopsis

$database_handle->rollback( )

Use this to undo the last change to an InnoDB or BDB table. It requires that the database handle was created with the attribute of AutoCommit set to false or 0, and that the change was not committed using the commit( ) function.

Get MySQL in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.