hi monika,
the simplest of the code for your task could be
create or replace trigger
trigg_try_update before insert
on try
for each row
begin
insert into try1(x,y) values (:new.x,:new.y);
end;
here x and y are the columns(place whatever columns your table has) of the table try1 in which u want to insert values before inserting them to table try.
the default practise is to use pseudo names :new and :old to reference the new and old value of the table on which the trigger
is fired.{ remember that :new and :old cannot be used in case
of table level triggers }.
|