首页 > 代码库 > SQL_事务回滚

SQL_事务回滚

begin try    begin transaction        insert into teachers (Name,Age,Greade) values(test1,40,高三三班)        insert into Students (ClassName,chinese,Age) values(高三六班,98,18)    commit transactionend trybegin catch    rollbackend catch

 

SQL_事务回滚