A transaction
is a logical, atomic unit of work
that contains one or more SQL statements. A transaction groups SQL statements so that they are either all committed
, which means they are applied to
the database, or all rolled back
, which means they are undone from
the database.