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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Triggers on multiple similar tables

Re: Triggers on multiple similar tables

From: Lun Wing San (Oracle) <wslun_at_qrcsun.qrc.org>
Date: 1997/01/26
Message-ID: <32EBE69A.3F21@qrcsun.qrc.org>#1/1

jshiruru_at_att.com wrote:
>
> I have two tables 'table1' and 'table2' whose fields are exact mirror
> images of each other(don't ask me why). The data might be different, but
> the fields are same. A trigger must fire when any updates/insert are
> done on these tables. Is it possible to have only one trigger for these
> two tables. The Application Developer's guide says 'NO'. But is there a
> workaround solution where only one trigger is required for two similar
> tables ? I know I am asking for too much here. But it's just a shot.

  You need declare a trigger for each table. However, you can call same stored procedure in the trigger body of these triggers.

---
Name   : Lun Wing San
Title  : Oracle Application Developer of Hong Kong Productivity Council
         Oracle Database Administrator and System Administrator of QRC
Phone  : (852)27885841
Received on Sun Jan 26 1997 - 00:00:00 CST

Original text of this message

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