27,581
社区成员




create procedure py_vmk_isto @rowcnt int
as
begin
begin tran whole
if @rowcnt > 0
begin
begin tran insto
............
execute @rc = py_vmk_isto @rowcnt
...........
commit tran insto
end
begin tran miss
commit tran miss
commit tran whole
return @rowcnt
error:
rollback tran
return -1
end