關於事務的英文說明 Transaction Overview
A database transaction is a larger unit that frames multiple SQL statements. A transaction ensures that the action of the framed statements is atomic with respect to recovery.
A SQL Modification Statement has limited effect. A given statement can only directly modify the contents of a single table (Referential Integrity effects may cause indirect modification of other tables.) The upshot is that operations which require modification of several tables must involve multiple modification statements. A classic example is a bank operation that transfers funds from one type of account to another, requiring updates to 2 tables. Transactions provide a way to group these multiple statements in one atomic unit.
In SQL92, there is no BEGIN TRANSACTION statement. A transaction begins with the execution of a SQL-Data statement when there is no current transaction. All subsequent SQL-Data statements until COMMIT or ROLLBACK become part of the transaction. Execution of a COMMIT Statement or ROLLBACK Statement completes the current transaction. A subsequent SQL-Data statement starts a new transaction.
In terms of direct effect on the database, it is the SQL Modification Statements that are the main consideration since they change data. The total set of changes to the database by the modification statements in a transaction are treated as an atomic unit through the actions of the transaction. The set of changes either:
Is made fully persistent in the database through the action of the COMMIT Statement, or
Has no persistent effect whatever on the database, through:
the action of the ROLLBACK Statement,
abnormal termination of the client requesting the transaction, or
abnormal termination of the transaction by the DBMS. This may be an action by the system (deadlock resolution) or by an administrative agent, or it may be an abnormal termination of the DBMS itself. In the latter case, the DBMS must roll back any active transactions during recovery.
The DBMS must ensure that the effect of a transaction is not partial. All changes in a transaction must be made persistent, or no changes from the transaction must be made persistent.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/310974/viewspace-998185/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- indexedDB transaction 事務Index
- Spring 對於事務上的應用的詳細說明Spring
- 關於GeoWebCache的部署說明Web
- DAPPER 事務 TRANSACTIONAPP
- 關於DOCTYPE的使用和說明
- 關於NTP SERVER的配置說明Server
- 關於DedeCMS版本號的說明
- Overview of Transaction Management (142)View
- MySQL:關於ICP特性的說明(未完)MySql
- zt_Orace ITL(Interested Transaction List) 說明REST
- 關於支援OPenACC的編譯器說明編譯
- java 關於操作Collection的一點說明Java
- 關於 RPM 命令的權威說明
- 關於SAP abap程式開發的說明
- 關於BUGZILLA的說明和安裝
- 關於 MySQL 的巢狀事務MySql巢狀
- 關於分散式事務的理解分散式
- 關於oracle autonomous transactionOracle
- oracle set transaction read only與dbms_transaction實現事務transaction控制Oracle
- 關於golang中下劃線(_)的語義說明Golang
- Oracle中關於PCTFREE和PCTUSED的說明Oracle
- Oracle ITL (Interested Transaction List) - 事務槽OracleREST
- 關於Numba的執行緒實現的說明執行緒
- 分散式事務 TCC-Transaction 原始碼分析 —— 事務恢復分散式原始碼
- 關於SPRING的事務管理_求助Spring
- 關於jdon 的事務處理疑惑?
- 關於日誌事務的問題
- 關於事務的儲存過程儲存過程
- httpd一之關於http工作模式的基本說明httpd模式
- 關於包(Package)應用規範的說明 (轉)Package
- keycloak~關於社群登入的過程說明
- 【AMM】關於ASM中AMM引數說明ASM
- SQL基礎-->資料庫事務(TRANSACTION)SQL資料庫
- 隨筆:MySQL 查詢事務狀態欄位說明MySql
- 分散式事務 TCC-Transaction 原始碼解析 —— 事務儲存器分散式原始碼
- 關於mysqldump備份非事務表的注意事項MySql
- MySQL關於事務常見的問題MySql
- 關於流資料上的事務操作