Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Pre update trigger query ..
"Manoj Nair" <debo_nair_at_yahoo.com> wrote in message
news:92a0e580.0109071414.19afdf2a_at_posting.google.com...
> How do i handle this situation?
>
> I have 2 tables...First table has 3 columns......I can update column 2
> and column 3. When I change values in column 3 ( by UPDATE ) and if
> this new value is different from old value in column 3 then I need to
> insert a record in second table...how should i go about this?
>
> Thanks
if updating('column3') and :new.column3 <> :old.column3 then
insert
end if;
Hth,
Sybrand Bakker, Senior Oracle DBA Received on Fri Sep 07 2001 - 17:17:29 CDT