zhaoyin】的更多相关文章

1.什么时候用到事务,单个update操作会用到事务吗? 银行转账 /**//*--使用事务--*/ use stuDB go --恢复原来的数据 --update bank set currentMoney=currentMoney-1000 where customerName='李' set nocount on --不显示受影响的行数 print '查看转帐事务前的余额' select * from bank go /**//*--开始事务--*/ begin transaction d…