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
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
转载于:https://www.cnblogs.com/MichaelShang/archive/2012/12/15/2819213.html
4339

被折叠的 条评论
为什么被折叠?