SQLServer--事務的建立

基本框架 use StudentManager go --事務基本框架 declare @errorSum int --定義變量,用於累計事務執行過程當中的錯誤 set @errorSum =0 --初始化爲0,即無錯誤 begin transaction begin if(@errorSum>0) rollback transaction else commit transaction --提交
相關文章
相關標籤/搜索