start_transaction.7

来自「PostgreSQL 8.2中增加了很多企业用户所需要的功能和性能上的提高,其开」· 7 代码 · 共 45 行

7
45
字号
.\\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $.TH "START TRANSACTION" "" "2008-01-03" "SQL - Language Statements" "SQL Commands".SH NAMESTART TRANSACTION \- start a transaction block.SH SYNOPSIS.sp.nfSTART TRANSACTION [ \fItransaction_mode\fR [, ...] ]where \fItransaction_mode\fR is one of:    ISOLATION LEVEL { SERIALIZABLE | REPEATABLE READ | READ COMMITTED | READ UNCOMMITTED }    READ WRITE | READ ONLY.sp.fi.SH "DESCRIPTION".PPThis command begins a new transaction block. If the isolation level orread/write mode is specified, the new transaction has thosecharacteristics, as if SET TRANSACTION [\fBset_transaction\fR(7)] was executed. This is the sameas the BEGIN [\fBbegin\fR(7)] command..SH "PARAMETERS".PPRefer to SET TRANSACTION [\fBset_transaction\fR(7)] for information on the meaningof the parameters to this statement..SH "COMPATIBILITY".PPIn the standard, it is not necessary to issue \fBSTART TRANSACTION\fRto start a transaction block: any SQL command implicitly begins a block.PostgreSQL's behavior can be seen as implicitlyissuing a \fBCOMMIT\fR after each command that does notfollow \fBSTART TRANSACTION\fR (or \fBBEGIN\fR),and it is therefore often called ``autocommit''.Other relational database systems may offer an autocommit featureas a convenience..PPThe SQL standard requires commas between successive \fItransaction_modes\fR, but for historicalreasons PostgreSQL allows the commas to beomitted..PPSee also the compatibility section of SET TRANSACTION [\fBset_transaction\fR(7)]..SH "SEE ALSO"BEGIN [\fBbegin\fR(7)], COMMIT [\fBcommit\fR(l)], ROLLBACK [\fBrollback\fR(l)], SAVEPOINT [\fBsavepoint\fR(l)], SET TRANSACTION [\fBset_transaction\fR(l)]

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?