Postgresql 中文操作指南
Description
COMMIT 提交当前事务。事务所做的所有更改对于其他人来说都已可见,并且在发生崩溃时会保证其持久性。
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.
-
-
AND CHAIN #
-
If AND CHAIN is specified, a new transaction is immediately started with the same transaction characteristics (see SET TRANSACTION) as the just finished one. Otherwise, no new transaction is started.
-
Examples
若要提交当前事务并使所有更改永久化:
To commit the current transaction and make all changes permanent:
COMMIT;