If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > How to compare two CLOB value in SELECT command

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-14-04, 10:56
sangeethk sangeethk is offline
Registered User
 
Join Date: Jan 2004
Posts: 10
Question How to compare two CLOB value in SELECT command

Hello,

This is some what related to my previous question,
"How to convert StringBuffer to Clob type in java"


The problem is I have one Clob type in my host language Java, I want to compare this value with each Clob value present in database(DB2) using SELECT command or by any other mean.

How can i do this?.

Can anyone please suggest me a solution

With regards,
sangeeth
Reply With Quote
  #2 (permalink)  
Old 01-14-04, 12:41
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Re: How to compare two CLOB value in SELECT command

Quote:
Originally posted by sangeethk
Hello,

This is some what related to my previous question,
"How to convert StringBuffer to Clob type in java"


The problem is I have one Clob type in my host language Java, I want to compare this value with each Clob value present in database(DB2) using SELECT command or by any other mean.

How can i do this?.

Can anyone please suggest me a solution

With regards,
sangeeth
I think you can only do it by retrieving each CLOB and comparing its character content with a Java object content. You cannot put two CLOBs in a WHERE (or any other) predicate.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On