Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to use clob datatype in 'IN' clause?

140b31f8-0a50-45b6-8ca4-8620887b5728Dec 25 2014 — edited Dec 26 2014

I am having a table which have three columns in it:

Table name: UserMaster

Column1: UserID

Column2: UserName

Column3: BackUpUsers (CLOB Type)

When i wrote a query like below it is working correctly:

select * from UserMaster where UserID IN (1,2,3 )

But when i fetch this value from BackUpUsers, it throws an error:

select * from UserMaster where UserID in (select BackUpUsers from UserMaster where UserID = 1)

The above inner query return the value 1,2,3 but of CLOB type.

It throws error like below:

ORA-00932: inconsistent datatypes: expected - got CLOB

00932. 00000 -  "inconsistent datatypes: expected %s got %s"

*Cause:   

*Action:

Any help or suggestion will be helpful..

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 23 2015
Added on Dec 25 2014
5 comments
2,163 views