gpt4 book ai didi

database - 中止和回滚之间的区别?

转载 作者:搜寻专家 更新时间:2023-10-30 19:46:21 24 4
gpt4 key购买 nike

事务管理中的abort和rollback有什么区别?

最佳答案

如果你指的是命令,通常没有。

来自 - 例如 - PostgreSQL manual ;

ABORT rolls back the current transaction and causes all the updates made by the transaction to be discarded. This command is identical in behavior to the standard SQL command ROLLBACK, and is present only for historical reasons.

如果您指的是数据库自动中止事务,这通常是在出现不可恢复的错误(例如连接丢失)时完成的,通常也通过回滚事件事务来完成。

关于database - 中止和回滚之间的区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11859292/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com