NAME
COMMIT - 提交当前事务
SYNOPSIS
COMMIT [ WORK | TRANSACTION ]
DESCRIPTION 描述
COMMIT 提交当前事务。 所有事务的更改都将为其他事务可见,而且保证当崩溃发生时的可持续性。
PARAMETERS 参数
- WORK
- TRANSACTION
可选关键字。没有作用。
NOTES 注意
使用 ROLLBACK [rollback(7)] 语句退出一次事务。
在一个事务内部发出 COMMIT 不会有问题,但是他将产生一个警告信息。
EXAMPLES 例子
要让所有变更永久化:
COMMIT;
COMPATIBILITY 兼容性
SQL92 只声明了两种形式 COMMIT 和 COMMIT WORK。否则完全兼容。
SEE ALSO 参见
BEGIN [begin(7)], ROLLBACK [rollback(l)]
#p#
NAME
COMMIT - commit the current transaction
SYNOPSIS
COMMIT [ WORK | TRANSACTION ]
DESCRIPTION
COMMIT commits the current transaction. All changes made by the transaction become visible to others and are guaranteed to be durable if a crash occurs.
PARAMETERS
- WORK
- TRANSACTION
- Optional key words. They have no effect.
NOTES
Use ROLLBACK [rollback(7)] to abort a transaction.
Issuing COMMIT when not inside a transaction does no harm, but it will provoke a warning message.
EXAMPLES
To commit the current transaction and make all changes permanent:
COMMIT;
COMPATIBILITY
The SQL standard only specifies the two forms COMMIT and COMMIT WORK. Otherwise, this command is fully conforming.
SEE ALSO
BEGIN [begin(7)], ROLLBACK [rollback(l)]