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: oracle update equivelent

Re: oracle update equivelent

From: Sybrand Bakker <postmaster_at_sybrandb.demon.nl>
Date: Thu, 14 Oct 1999 20:55:39 +0200
Message-ID: <939927351.17371.0.pluto.d4ee154e@news.demon.nl>


create or replace trigger mobile_binary on mobile after insert for each row begin
update customer
set plan_id = plan_id + 1
where customer_id = :new.customer_id;
end;
/

Hth,

--
Sybrand Bakker, Oracle DBA
Sebastian Degenaar <degenaar_at_adlink.com.au> wrote in message news:38058819.23CA472B_at_adlink.com.au...
> I used this trigger in interbase but am now converting everything to
> oracle 8i Win NT. I had a trigger which updates a field in the customer
> table (plan_id) which equals the customer_id of the current mobile row.
> The trigger is:
>
> create trigger mobile_binary for mobile
> after insert as
> begin
> update customer set plan_id = plan_id + 1 where mobile.customer_id =
> customer_id;
> end
>
> How do I implement this in oracle.
>
> Thanks in advance
>
Received on Thu Oct 14 1999 - 13:55:39 CDT

Original text of this message

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