Home » SQL & PL/SQL » SQL & PL/SQL » ORA-00932: inconsistent datatypes: expected - got CLOB
ORA-00932: inconsistent datatypes: expected - got CLOB [message #178629] |
Wed, 21 June 2006 23:38  |
lawyer0413
Messages: 3 Registered: June 2006
|
Junior Member |
|
|
There we have two tables: my_comment and sys_comment.
And field comment_desc in table my_comment is CLOB, and in table sys_comment is VARCHAR.
And I can run following two SQL successsfully:
SELECT comment_desc FROM my_comment;
SELECT TO_CLOB(comment_desc) FROM sys_comment;
But when I do UNION of them, execute following SQL:
SELECT comment_desc FROM my_comment
UNION
SELECT TO_CLOB(comment_desc) FROM sys_comment;
Error occurs:
ERROR at line 1:
ORA-00932: inconsistent datatypes: expected - got CLOB
Can anyone tell me why and how to resolve it?
Many thanks.
|
|
|
|
|
|
|
Re: ORA-00932: inconsistent datatypes: expected - got CLOB [message #598966 is a reply to message #178629] |
Mon, 21 October 2013 02:33   |
 |
jayasimha
Messages: 1 Registered: October 2013
|
Junior Member |
|
|
Hi Experts ,
Am facing same issue while executing below query
select logs.countrycode,logs.endsystem,logs.merchantid from (select countrycode,endsystem,SUBSTR(part2, 1, INSTR(part2, ';') - 1)MerchantId from (select countrycode,endsystem,SUBSTR(part1, INSTR(part1,'=') + 1) part2 from (select countrycode,endsystem,SUBSTR(additionalinfo, INSTR(additionalinfo, ';') + 1) part1 from esb_logs_1b where logtype= 'AUDIT_6'and medlaststate='SUCCESS') dual)dual )logs order by logs.merchantid
Here in above query additionalinfo is the clob datatype
Can any one please advise to resolve the above issue.
[Updated on: Mon, 21 October 2013 02:40] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Tue Jun 03 12:28:35 CDT 2025
|