(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
Rolls back a transaction
public bool PDO::rollBack ( void )
Rolls back the current transaction, as initiated by PDO::beginTransaction(). A PDOException will be thrown if no transaction is active.
If the database was set to autocommit mode, this function will restore autocommit mode after it has rolled back the transaction.
Some databases, including MySQL, automatically i