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: CLOB and NVL

Re: CLOB and NVL

From: Ron Reidy <rereidy_at_indra.com>
Date: Mon, 05 Nov 2001 15:30:59 -0700
Message-ID: <3BE71323.C1F43B34@indra.com>


Lisa T wrote:
>
> Is it possible to use NVL or DECODE with a CLOB in Oracle 8i?
>
> For example,
> select nvl(clob_column,'None') from table;
>
> currently returns
>
> ERROR at line 1:
> ORA-00932: inconsistent datatypes
>
> Thanks. Lisa

This error is because the 2 arguments to the NVL() must be the same (a clob is not a varchar2). How about NVL2() instead of NVL()? My guess is this also holds for DECODE() as well.

-- 
Ron Reidy
Oracle DBA
Reidy Consulting, L.L.C.
Received on Mon Nov 05 2001 - 16:30:59 CST

Original text of this message

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