A transaction is a logical unit of work that contains one or more SQL statements. A
transaction is an atomic unit. The effects of all the SQL statements in a transaction can
be either all committed (applied to the database) or all rolled back (undone from the
database).
A transaction begins with the first executable SQL statement. A transaction ends when
it is committed or rolled back, either explicitly with a COMMIT or ROLLBACK statement
or implicitly when a DDL statement is issued.
事务简介
1. 包含一个或多个SQL语句的逻辑 , 原子单元
2. 在事务中所有的SQL语句要么都提交 , 要么都回滚
3. 事务以第一条可执行的SQL语句开始 , 要么显示的以commit或者rollback结束 , 隐式的则为碰到DDL语句issued
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10599713/viewspace-980759/ ,如需转载,请注明出处,否则将追究法律责任。