Re: Update Trigger

From: Matt B. <mcb_at_fightspam.sd.znet.com>
Date: 2000/06/16
Message-ID: <skm61aq9is4164_at_corp.supernews.com>#1/1


<scott__boucher_at_hotmail.com> wrote in message news:8icrcl$bab$1_at_nnrp1.deja.com...
> I am learning triggers. When any field in table1 is updated, I want to
> insert certain data from table1 into table2. Both tables are in the
> same database but have different owners. Table1 has insert rights to
> table2
>
> When table1 is updated do I declare host variables for each field to be
> moved to table2 using a select statement and then do an Update with
> these values into table2.
>
> Is there a better(easier) way of doing this.
>
> Thanks
> Scott

Use an after-update database trigger on table 1.

-Matt Received on Fri Jun 16 2000 - 00:00:00 CEST

Original text of this message