create or replace trigger comprueba_departamento
before update or insert on DEPARTAMENTO
for each row
declare
numero number;
resultado number;
begin
if (mod(:new.department_id, 10)!=0) then
dbms_output.put_line('Holita esto está mal');
else
insert into departamento values (:old.department_id,:new.department_name,:new.mana ger_id,:new.location_id);
dbms_output.put_line(:new.department_id);
end if;
end;
Alguien me podría ayudar con este problemilla???
![Neurótico](http://static.forosdelweb.com/fdwtheme/images/smilies/scared.png)