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!

Distinct CLOB Column

jerry8989Nov 1 2010 — edited Nov 3 2010
I have a clob column that has rows that have almost 6K character in them. There are duplicate rows in the data that I'm trying to remove using the distinct in my select.

I keep getting a "inconsistent datatypes: expected - got CLOB 00932. 00000 - "inconsistent datatypes: expected %s got %s"

This is my very basic query
select distinct detail from News a left join category b on a.id = b.id 
There are more columns i'm going to add to this query that is why the left join is there. I wanted to get the clob figured out first.

I have tried
select distinct dbms_lob.substr( detail, 6000, 1 )  from news
but get an error
numeric or value error: character string buffer too small

Any help would be greatly appreciated
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 1 2010
Added on Nov 1 2010
8 comments
2,526 views