set serveroutput on;declare
v_yhid tb_gg_yhxx.f_yh_id %type := 11111111111;
begin
update tb_gg_yhxx set f_yh_name = 'test' where f_yh_id = v_yhid;
if SQl%found then
dbms_output.put_line(SQL%rowcount || 'Delete Ok!');
end if;
if SQL%notfound then
dbms_output.put_line('雇员编号' || v_yhid || '不存在');
end if;
end;试试看