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 -> What's wrong with this trigger?

What's wrong with this trigger?

From: Helen <helen_kuo_at_us.sina.com>
Date: Tue, 15 Aug 2000 20:37:08 -0400
Message-ID: <8ncnfh$s2s$1@newsmaster.cc.columbia.edu>

I could create this trigger, but it didn't do what I wanted. Thanks for your input.

CREATE OR REPLACE TRIGGER pic_trg_aiur BEFORE INSERT OR UPDATE   OF status_yn ON picture
  FOR EACH ROW BEGIN
  IF :new.status_yn = 'Y' THEN
    UPDATE picture

       SET pic_ob = empty_blob()
    WHERE pic_id = :new.pic_id;
  END IF;
EXCEPTION
  ..
END;
/

H Received on Tue Aug 15 2000 - 19:37:08 CDT

Original text of this message

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