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

Home -> Community -> Usenet -> c.d.o.misc -> Re: AFTER UPDATE trigger not working trying to specify WHEN

Re: AFTER UPDATE trigger not working trying to specify WHEN

From: Sybrand Bakker <gooiditweg_at_sybrandb.demon.nl>
Date: Fri, 07 Nov 2003 06:09:42 +0100
Message-ID: <q4amqv8dtv9ual5nstc72gul2rctjnjheh@4ax.com>


On 6 Nov 2003 15:43:55 -0800, rojoni8_at_hotmail.com (Joe Saling) wrote:

>Any suggestions are appreciated.

Oracle doesn't distinguish between null and '' Both your when clause and your if statement don't take into account the column can be NULL. NULL is nothing, doesn't compare to anything, so the != clause fails. You'll need to work with nvl(<column>,'@') != nvl(<column>,'@')

--
Sybrand Bakker, Senior Oracle DBA
Received on Thu Nov 06 2003 - 23:09:42 CST

Original text of this message

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