代码
CREATE
PROCEDURE
DelRowsByID
@id
int
AS
BEGIN
begin
transaction
begin
try
--
sql
end
try
begin
catch
if
@@trancount
>
0
rollback
transaction
end
catch
if
@@trancount
>
0
commit
transaction
END
转载于:https://www.cnblogs.com/_fyz/archive/2010/11/05/1870110.html
转载请注明原文地址: https://win8.8miu.com/read-1540014.html