RE: Can we have same trigger with different names for ...
Yes you can have . This is because the triggers dont share the same namespace for tables.whereas funtions,procedures,tables etc share the same namespace.so they cant have the same name
RE: Can we have same trigger with different names for ...
Yes we can create trigger on same event with different names but cannot predict which trigger is executed.
for example: create or replace trigger trigg1 before delete on emp begin raise_application_error(-20001,'Delete not allowed'); end;
create or replace trigger trigg2 before delete on emp begin raise_application_error(-20001,'Deletion is not allowed'); end;
SQL> delete from emp; delete from emp * ERROR at line 1: ORA-20001: Deletion is not allowed ORA-06512: at "SCOTT.TRIGG2", line 2 ORA-04088: error during execution of trigger 'SCOTT.TRIGG2'
RE: Can we have same trigger with different names for ...
Hi, The triggers will be fired on the basis of TimeStamp of their creation in Data Dictionary. The trigger with latest timestamp will be fired at last.