在下面的两个代码块中,我使用 WHEN NO_DATA_FOUND THEN,否则使用哪个代码会更有效。
if outrowcount = 1 then
update Extable set CLIENT_COUNT = outCliCount where cname='xxx';
outretvalue := 0;
END IF;
EXCEPTION
WHEN NO_DATA_FOUND THEN
outretvalue := -1;
或者
if outrowcount = 1 then
update Extable set CLIENT_COUNT = outCliCount where cname='xxx';
outretvalue := 0;
else
outretvalue := -1;