Create proc sp_A
as
begin try
insert into tbl_A (A,B) valuses(1,'A')
select 'insert into tbl_A success'
end try
begin catch
select 'insert into tbl_A failed'
end catch
go
as
begin try
insert into tbl_A (A,B) valuses(1,'A')
select 'insert into tbl_A success'
end try
begin catch
select 'insert into tbl_A failed'
end catch
go
这是什么方法来的?怎么会有try和catch