MySQL数据库事务处理

概念:事务指逻辑上的一组操作,组成这组操作的各个单元,要不全部成功,要不全部不成功。 例如:A向B转账100元,对应于如下两条sql语句: update from account set money=money+100 where name=’b’; update from account set money=money-100 where name=’a’; 数据库默认事务是自动提交的,也就是发
相关文章
相关标签/搜索