Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Replacing NVL
"Mikko Lehtinen" <mikko.lehtinen_at_add2phone.com> wrote in message
news:ae7ad1$ndl$1_at_phys-news1.kolumbus.fi...
> Hi all,
>
> Does anyone know how the following SQL statement can be implemented
without
> oracle specific nvl function?
>
> Column pkX is a varchar2 and columnX is a number.
>
> UPDATE tableX SET columnX = nvl(columnX, 0) + 1 WHERE pkX=?
UPDATE tableX SET columnX = Decode(columnX,null,0,columnX) WHERE pkX = ?
Hope this help
Mladen
Received on Thu Jun 13 2002 - 04:05:53 CDT