Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Basic trigger help

Basic trigger help

From: kram <kram_at_biosys.net>
Date: Tue, 03 Oct 2000 21:56:52 GMT
Message-ID: <ECsC5.16387$tl2.1165436@bgtnsc07-news.ops.worldnet.att.net>

Can any body help me with the following trigger? I is invalid as there is an error in the sql, but when I run this separately it works.

after insert on db.delays
referencing
new as new
old as old
FOR EACH ROW
begin

    if (select c.cgrno from customer c, ad a, delays d

      where a.adno=:NEW.ADNO
      and a.cus2no=c.cusno
      and d.adno=a.adno
      and d.vno=a.vno); <> 100 then
      begin
        delete from delays where adno=:old.adno;
      end;
Received on Tue Oct 03 2000 - 16:56:52 CDT

Original text of this message

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