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: INSERT trigger doesn't work...why not?

Re: INSERT trigger doesn't work...why not?

From: Geoff White <whiteg_at_ccis.adisys.com.au>
Date: Fri, 05 Nov 1999 09:59:04 +0800
Message-ID: <382239E8.642B8784@ccis.adisys.com.au>


I think what you need is:

create or replace trigger cc.person_insert_trigger  before insert
 on cc.person
 for each row
 when (new.person_id is null)
 begin
  select cc.person_s.nextval
  into :new.person_id
  from dual;
end;

HTH
Geoff

John Haskins wrote:

> Greetings:
> <snip>

>
Received on Thu Nov 04 1999 - 19:59:04 CST

Original text of this message

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