Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Need info on triggers
PKA <praveen_andugula_at_nt.com> wrote:
>Hi
>I need to capture changes to a table. The table has many columns and i
>need to capture changes to some specific columns. For this purpose i
>know that i need a row level trigger.my question is can I capture
>changes to various columns with a single trigger or i need to have a
>trigger for each column. Any help is appreciated.
>
>Thanks in advance
>Praveen
>praveen_andugula_at_nt.com
Hi there,
All you need is to create an single trigger on that table for that operation.
Within that you can check whether the column has been changed with 'old' and 'new' variables. If the column is changed, you can continue with the logic.
A single trigger for INSERT, UPDATE, DELETE will do..Alternatively you can write a trigger which will fire for INSERT / UPDATE / DELETE operation.
Regards
N.Prabhakar Received on Thu Feb 13 1997 - 00:00:00 CST
![]() |
![]() |