NAME
END - 提交当前的事务
SYNOPSIS
END [ WORK | TRANSACTION ]
DESCRIPTION 描述
END END 提交当前事务。 所有当前事务做的修改都可被其它事务看到并且保证在发生崩溃的情况下的持续性。 它是一个 PostgreSQL 的扩展,等效于 COMMIT [commit(7)].
PARAMETERS 参数
- WORK
- TRANSACTION
可选关键字。没有作用。
NOTES 注意
用 ROLLBACK [rollback(7)] 退出事务。
如果不在一个事务块里发出 END 将不会有什么损害,但是它会生成一个警告信息。
EXAMPLES 例子
提交当前事务,令所有改变生效:
END;
COMPATIBILITY 兼容性
END 是 PostgreSQL 的扩展,提供与 COMMIT [commit(7)] 相同的功能, 后者是 SQL 标准声明的语句。
SEE ALSO 参见
BEGIN [begin(7)], COMMIT [commit(l)], ROLLBACK [rollback(l)]
#p#
NAME
END - commit the current transaction
SYNOPSIS
END [ WORK | TRANSACTION ]
DESCRIPTION
END commits the current transaction. All changes made by the transaction become visible to others and are guaranteed to be durable if a crash occurs. This command is a PostgreSQL extension that is equivalent to COMMIT [commit(7)].
PARAMETERS
- WORK
- TRANSACTION
- Optional key words. They have no effect.
NOTES
Use ROLLBACK [rollback(7)] to abort a transaction.
Issuing END 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:
END;
COMPATIBILITY
END is a PostgreSQL extension that provides functionality equivalent to COMMIT [commit(7)], which is specified in the SQL standard.
SEE ALSO
BEGIN [begin(7)], COMMIT [commit(l)], ROLLBACK [rollback(l)]