I have 3 tables:
data(operation_name,table_name,operation_date,prim_key)
table2(col1,col2,col3,col4)
table3(col1,col2,col3,col4)
I need a trigger which will populate data table whenever an operation(insert,update or delete) is done on table2 or table3.
In data table:
operation_name>> name of DML statement(insert, update or delete) done on table1 or table3
table_name>> name of table on which operation is done.
operation_time>> date at which operation is done.
prim_key>> it should automatically display the primary key of the table on which operation is done.
I am very new to pl/sql and trying various things, but none of them are working.