sql%rowcount捕捉update异常
时间:2011-02-25 来源:郭振斌
CREATE OR REPLACE procedure test1(retvalue out char) as
begin
update test set a = '1 ' where a = '1 ';
if sql%rowcount = 0 then
retvalue := 'F ';
else
commit;
retvalue := 'T ';
end if;
end test1;
相关阅读 更多 +