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

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

WBOY
Release: 2016-06-13 12:22:06
Original
1208 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template