begin
stoo_rowcnt:=0
update table 1 set sdfd=....;
stoo_rowcnt:=sql%rowcount;
exception
when others then 
 continue_flag:=false;
end;
if stoo_rowcnt=0 then
continue_flag:=false;
end if; 
if continue_flag then 
update table 2....
end if;