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 - Table Name - Generalise!

Re: Trigger - Table Name - Generalise!

From: Martin Haltmayer <Martin_Haltmayer_at_in.augsburg.net>
Date: Sun, 05 Sep 1999 11:30:12 +0200
Message-ID: <37D23824.E5976040@in.augsburg.net>


I would try a script which generates a script which contains the trigger generation code. The ordering of the lines in the result script you can achieve by using a column named xxxx with noprint column format and ordering by that column.

Martin

Nandakumar wrote:
>
> Hi
>
> There are few tables with identical table structure. And an INSERT
> TRIGGER needs to be attached with each of these tables at ROW LEVEL.
> The trigger checks that if the current insert caues a duplicate, updates
> one of the fields in the old record.
>
> ... so the logic inside the trigger is same except for the table name.
> Is there a way to pass the table name or reference the table name inside
> body of trigger, so that i can write one TRIIGER and attach it with all
> tables!!
>
> Thanks!
>
> --
> Nandakumar
> (N.Kumar_at_rocketmail.com)
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
Received on Sun Sep 05 1999 - 04:30:12 CDT

Original text of this message

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