transaction sql

Begin transaction

use Test

insert into Student values('004','name1',30)

save tran my_sa

delete from Student where [Name] = 'name1'

rollback tran my_sa

commit tran

go

posted on 2012-12-15 13:58 Michael Shang 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/MichaelShang/archive/2012/12/15/2819213.html

猜你喜欢

转载自blog.csdn.net/weixin_34178244/article/details/93587605