| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.misc -> update query question
I am trying to update the notification.notify_key
if it is null, otherwise leave it unchanged. It
should be set to the appropriate value from
notify_temp.notify_key.
The following code sets it correctly on the first execution, then on the second execution it is set to null. This repeats cycling between a value and null each time. (not what is needed)
update notification nf set notify_key=(
select
decode(nf.notify_key,NULL, tm.notify_key,
nf.notify_key,nf.notify_key)
from
Any suggestions?
Thanks, Jack Received on Fri Oct 22 2004 - 15:59:24 CDT
![]() |
![]() |