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 -> Update table with CLOB condition

Update table with CLOB condition

From: Paul <paulhjli_at_hotmail.com>
Date: Thu, 14 Dec 2000 21:30:18 -0000
Message-ID: <t3ievam5kl9242@corp.supernews.com>

Hi,
I want to update table which contain CLOB column. I am able to update table with conditions, which not including CLOB column. But, when I put CLOB column in the condition column, it shows me ORA-00932: inconsistent datatypes. The detail information attached,

Thanks for your help.

SQL> desc cust;

 Name                            Null?    Type
 ------------------------------- -------- ----
 CUSTOMER_ID                     NOT NULL VARCHAR2(25)
 STATUS                          NOT NULL NUMBER(6)
 ATTENTION_MESSAGE                        CLOB

SQL> select * from cust where customer_id=47;

CUSTOMER_ID                  STATUS ATTENTION_MESSAGE

------------------------- --------- ---------------------------------------
47 0 test message changed

SQL> UPDATE CUST SET ATTENTION_MESSAGE='test message back'   2 WHERE CUSTOMER_ID='47'; 1 row updated.

SQL> commit;

Commit complete.

SQL> select * from cust where customer_id=47;

CUSTOMER_ID                  STATUS ATTENTION_MESSAGE

------------------------- --------- ---------------------------------------
47 0 test message back

SQL> UPDATE CUST SET customer_id=99
  2 WHERE ATTENTION_MESSAGE='test message back'; SQL>
WHERE ATTENTION_MESSAGE='test message back'

      *
ERROR at line 2:
ORA-00932: inconsistent datatypes

--
Posted via CNET Help.com
http://www.help.com/
Received on Thu Dec 14 2000 - 15:30:18 CST

Original text of this message

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