Home  >  Article  >  Database  >  mysql 事务控制 新增后修改

mysql 事务控制 新增后修改

WBOY
WBOYOriginal
2016-06-06 09:42:471491browse

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