dingpin 发表于 2008-8-26 21:30

mysql中存储过程与事务

例如下:
create procedure trade()
begin
     update account set balance = balance - 100 where uid = 1;
     update account set balance = balance + 100 where uid = 2;
end//

怎么样用事务保证俩SQL语句都执行呢?
期待,高手解决......

dingpin 发表于 2008-8-27 22:38

有没有人会呀?
急呀,版主在不在呀???????

页: [1]

编程论坛