Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> More than one table for a Triggers
Hi :)
I know that one trigger can be assign to only one
table.
I have a situation here, Below are all the tables
mapped_table
company_table
The mapped_table takes the value from two other table which is company and employee tables.
A trigger name :autoinsert_mapped_tr
This trigger will automatically takes value
comid,empid,passportno from both company and employee
table into mapped_table on insert and mappedid is a
seq number.
Since trigger is tied to one table, how can the above scenario be done? I didn't want to create 2 triggers , one for company on insert and another triggers for employee on insert.
Thank You
Jkean
![]() |
![]() |