begin tran trProc
if exists(select top 1 errorcount From #tempResult where errorcount =-1 order by id DESC)
begin
rollback tran trProc
return;
end
if exists(select top 1 errorcount From #tempResult where errorcount =-1 order by id DESC)
begin
rollback tran trProc
return;
end
commit tran trProc;
begin tran trProc2
if exists(select top 1 errorcount From #tempResult where errorcount =-1 order by id DESC)
begin
rollback tran trProc2
return;
end
if exists(select top 1 errorcount From #tempResult where errorcount =-1 order by id DESC)
begin
rollback tran trProc2
return;
end
commit tran trProc2;
uj5u.com熱心網友回復:
允許的。原則上盡量采用短小,簡潔的設計。uj5u.com熱心網友回復:
但是在存盤程序中用的,這算嵌套事務嗎?轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/31226.html
標籤:基礎類
上一篇:count 求 優化
下一篇:請教大蝦們一個問題
