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

原文地址:https://www.cnblogs.com/MichaelShang/p/2819213.html