事务实例--银行转帐

首先,举个例子: 银行(bank)中有两个客户(name)张三和李四 咱们须要将张三的1000元存款(sal)转到李四的帐户上html咱们须要怎要经过sql语句来实现这个过程 update bank set sal = sal - 1000 where name = '张三'; update bank set sal = sal + 1000 where name = '李四'; 可是万一出现一些
相关文章
相关标签/搜索