create or replace trigger del_dept
before delete on dept
begin
     if deleting then
        raise_application_error(-20020,'禁止删除表dept中的记录');
     end if;
end;
这样做的效果不是很好.引发应用程序错误,会导致整个引用程序终止.谁能给出个好点的方法,
禁止删除dept表中的记录,我希望的目的是,删除可以执行但是表中的记录不会受影响.