一旦提交语句完成,这是否意味着它实际上已完成提交?或者这是否意味着提交操作已经完成,但它仍然可能在后台提交?
最佳答案
是的。
曾经COMMIT
命令成功完成,操作完成,并永久记录更改。没有需要以某种方式完成操作的后台进程的概念。
这是对 the MySQL documentation 的引用:
COMMIT
commits the current transaction, making its changes permanent.
再举一个例子,Oracle docs说:
Use the
COMMIT
statement to end your current transaction and make permanent all changes performed in the transaction. A transaction is a sequence of SQL statements that Oracle Database treats as a single unit. This statement also erases all savepoints in the transaction and releases transaction locks.
关于sql - 完成的 COMMIT 语句是否意味着它已完成提交?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58018158/