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: Trigger on table with many fields

Re: Trigger on table with many fields

From: Noel <tbal_at_go2.pll-l>
Date: Mon, 05 Sep 2005 12:01:25 +0200
Message-ID: <dfh53v$hko$1@inews.gazeta.pl>


Użytkownik michaelg napisał:

> Hi there,
>
> I have a problem using a trigger on a table with many field (>150).
> This is the trigger :
>
> create or replace trigger trg_tst
> after insert or update on tst_table1
> For each row
> declare lfd number(10);
> begin
> select test_seq.nextval into lfd from dual;
> insert into tst_table2

                               ^^^^^^^^ here specify columns of tst2.

> values
> (:new.field1,
> :new.field2,
> :new.field3,
> .
> .
> :new.field150
> lfd);

Here specify what of data from tst_table1 goes to tst_table2, and get trigger compiled.

> end:
>

Since there is a bunch o columns you get into typing exercise.

-- 
Noel
Received on Mon Sep 05 2005 - 05:01:25 CDT

Original text of this message

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