ITPub博客

首页 > 应用开发 > IT综合 > Introduction to Transactions (138)

Introduction to Transactions (138)

原创 IT综合 作者:tsinglee 时间:2007-11-04 11:41:35 0 删除 编辑

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

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10599713/viewspace-980759/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    740
  • 访问量
    1892328