Os seguintes comandos finalizam uma transação implicitamente
(como se você tivesse feito um COMMIT antes
de executar o comando):
| Comando | Comando | Comando |
ALTER TABLE |
BEGIN |
CREATE INDEX |
DROP DATABASE |
DROP INDEX |
DROP TABLE |
LOAD MASTER DATA |
LOCK TABLES |
RENAME TABLE |
SET AUTOCOMMIT=1 |
START TRANSACTION |
TRUNCATE |
UNLOCK TABLES também finaliza uma
transação se qualquer tabela estiver atualmente bloqueada.
Antes do MySQL 4.0.13, CREATE TABLE finaliza
uma transação se o log binário está habilitado.
Transações não podem ser aninhadas. Isto é uma consequência
do COMMIT implícito realizado por qualquer
transação atual quando você envia uma instrução
START TRANSACTION ou um de seus sinônimos.
This is a translation of the MySQL Reference Manual that can be found at dev.mysql.com. The original Reference Manual is in English, and this translation is not necessarily as up to date as the English version.
