Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Delete Triggers

Delete Triggers

From: cheefook <cheefook_at_email.msn.com>
Date: Wed, 12 Jan 2000 15:56:20 -0500
Message-ID: <uZfJn9TX$GA.259@cpmsnbbsa02>


Hi Oracle Expert,

    I am trying to create several delete triggers for numbers of tables.

     create or replace trigger table_tmp_a_trig before delete on table_a for each row

    begin

        insert into tmp_a values(col a, col b, col c.......); /* table has 40 columns)

    end;

Is there an easy way to implement this trigger without specify all columns in insert into tmp_a values(....)?

i.e insert a row into table a as a row is deleted.

The goal is to move all deleted rows from table A to table B.

Or there is a better way to achieve it.

FYI,
    Oracle Server : 7.3.2.1.0

Thanks for your help.

chai Received on Wed Jan 12 2000 - 14:56:20 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US