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: Future of Triggers

Re: Future of Triggers

From: Alexandre Guillien <aguillien_at_tetraconcept.com>
Date: Fri, 27 Oct 2000 16:51:49 +0200
Message-ID: <39F99684.FE702413@tetraconcept.com>

> Hi Everyone,
>
> Does anyone know if ORACLE are planning to introduce triggers for views. For
> example you would be able to set a trigger on the following SQL statement;
>
> SELECT * FROM EMP_TABLE
> WHERE EMP_SAL > 20000
>
> and whenever a row is inserted that matches this query, a trigger is fired.

This is out of the common trigger philosophy.

What I'd do is a trigger BEFORE/AFTER INSERT that would do :

IF :NEW.EMP_SAL > 20000 THEN
    FireMyPLSQLProcedure;
END IF; You will have the same result.

A.G. Received on Fri Oct 27 2000 - 09:51:49 CDT

Original text of this message

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