存储过程中断点定义语句:
ON EXCEPTION SET __OK
if __ErrorID<>0 then
RETURN __ErrorID;
else
RETURN __OK;
end if
END EXCEPTION
let __ok=100;
SQL 语句;
或者为:
ON EXCEPTION SET ERR,ERR2,MSG
raise exception -746,0,'ERR:'||ERR||',()MSG:'||__ErrorID||'-'||MSG;
END EXCEPTION
let __errorid=100;
SQL 语句;
转载于:https://www.cnblogs.com/liangyj666/archive/2009/08/02/1536992.html