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 -> Re: Delete Triggers

Re: Delete Triggers

From: Andreas Michler <Andreas.Michler_at_adicom.de>
Date: Thu, 13 Jan 2000 12:25:09 +0100
Message-ID: <387DB615.5CB588F4@adicom.de>


This insert command is always the same. Your can do the following:
insert into tmp_a (field1,field2) values ("contentf1","contentf2");

cheefook wrote:

> 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

--



ADICOM Informatik GmbH
Andreas Michler
Wiesfleckenstr. 34
72336 Balingen
Tel: 07433/9977-57,Fax: -90
E-Mail: Andreas.Michler_at_adicom.de
http:\\www.adicom.de
Received on Thu Jan 13 2000 - 05:25:09 CST

Original text of this message

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