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: Questions about instead of triggers

Re: Questions about instead of triggers

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Mon, 19 Jul 1999 12:20:05 +0100
Message-ID: <932383512.7332.1.nnrp-07.9e984b29@news.demon.co.uk>

If colnameA is not present in the update clause you should find that

   :new.colnameA is the same as :old.colnameA

But beware how you write code to check this or you may get caught in the trap of

    (NULL = NULL) is NULL, not TRUE.

You also have the option to write triggers which fire

    INSTEAD OF UPDATE of col1, col2

--

Jonathan Lewis
Yet another Oracle-related web site: www.jlcomp.demon.co.uk

Cory Brooks wrote in message <37908D97.F6BB63B2_at_lilly.com>...
>In other words, the new value for a column can be null because it's
>being set to null or because it's omitted from the set clause (i.e.,
>should NOT be changed).
Received on Mon Jul 19 1999 - 06:20:05 CDT

Original text of this message

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