1 begin try
2 begin transaction 3 insert into shiwu (asd) values ('aasdasda'); 4 commit transaction 5 end try 6 begin catch 7 select ERROR_NUMBER() as errornumber 8 rollback transaction 9 end catch

 

posted on 2014-02-16 23:56  清风暮雨  阅读(134)  评论(0)    收藏  举报