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 -> Re: Oracle varchar problem - Difficult

Re: Oracle varchar problem - Difficult

From: Christopher Burke <craznar_at_hotmail.com>
Date: Tue, 06 Feb 2001 20:42:31 GMT
Message-ID: <90414412ECraznar@61.9.128.12>

afilonov_at_pro-ns.net (Alex Filonov) wrote in <95p69a$7ut$1_at_nnrp1.deja.com>:

>
>update blob
>set dirty = 'Y', value = new_value
>where not(value = new_value)
>
>In case when either value or new_value is null, result of
>value = new_value is false, so this case is covered too.
>

However if the old and new values are both '' - then the field will be updated even though the data hasn't changed (i.e. dirty will be set to 'Y').

-- 
---
/* Christopher Burke - Spam Mail to craznar_at_hotmail.com
|* www.craznar.com - International Internet Writing Experiment
\* Real mail to cburke(at)craznar(dot)com
Received on Tue Feb 06 2001 - 14:42:31 CST

Original text of this message

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