BEGIN

Description: Begins a transaction out of autocommit mode. A series of statements may follow, the following queries not being committed to the database until a COMMIT is issued (or a SQL command, which automatically ends a transaction).

Limitations: Transaction-safe tables (BDB and InnoDB). With other table types, queries following BEGIN will be committed to the database automatically.

Description in: Day 17

See also: COMMIT, ROLLBACK

Get Sams Teach Yourself MySQL in 21 Days, Second Edition 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.