I have a table TABLENAME with COLUMNNAME data type is CLOB. For example it's contains only 3 rows with 1st row of COLUMNNAME value is 123,456,789 and the 2nd is NULL and the 3rd is an empty string
And I have this query
UPDATE TABLENAME
SET COLUMNNAME = COLUMNNAME || CASE
WHEN TRIM(COLUMNNAME) = '' OR COLUMNNAME IS NULL THEN
'098765'
ELSE ',098765'
END
when I run this query, I've got error message ORA-00932: inconsistent datatypes: expected - got CLOB
how to fix it?
I use Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit