Home >Backend Development >PHP Tutorial >MYSQL回滚,当发生外键约束等异常时,会自动回滚吗

MYSQL回滚,当发生外键约束等异常时,会自动回滚吗

WBOY
WBOYOriginal
2016-06-13 12:22:061210browse

MYSQL回滚,当发生外键约束等错误时,会自动回滚吗?
MYSQL回滚,当发生外键约束等错误时,会自动回滚吗?
是否需要自己手动判断外键,然后手动rollback?
------解决思路----------------------
所谓事务回滚并非 MySQL 的功能,而是用户的一种需求。mysql 只是提供一个容器,来帮助用户实现

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn