Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: trigger question
create or replace trigger back_up_the_data
before update on data_table
for each row
begin
insert into backup_table values(:old.col_a,:old.col_b,:old.col_c,...);
end;
/
That ought to do it.....
Whoops, just saw your updated mail....in that case, try:
create or replace trigger make_a_copy
before insert on data_table
for each row
begin
insert into copy_table values(:new.col_a,:new.col_b,:new.col_c,...);
end;
/
Try that,
-Mark
> -----Original Message-----
> From: oracle-l-bounce_at_freelists.org
> [mailto:oracle-l-bounce_at_freelists.org]On Behalf Of David
> Sent: Tuesday, November 23, 2004 2:11 PM
> To: oracle-l_at_freelists.org
> Subject: trigger question
>=20 >=20
>=20
-- http://www.freelists.org/webpage/oracle-lReceived on Tue Nov 23 2004 - 19:31:35 CST
![]() |
![]() |