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 > lcase with blob datatype

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-23-04, 05:13
dr_suresh20 dr_suresh20 is offline
Registered User
 
Join Date: Sep 2003
Posts: 218
lcase with blob datatype

I have a query which looks something like:

SELECT DISTINCT col1
FROM <table>
WHERE col2 like BLOB('%%.%Wk46-2003%')

note the col2 is a blob column. Now my question is: does BLOB() also support LCASE() function as well? Or equivalent SQL is fine with me.

I am using db2 v8.1.4a on win2k platform.

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 02-23-04, 09:40
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
No,
LCASE does not support a BLOB. LCASE is for converting strings to lower case. BLOB's are not considered strings. On the other hand, LCASE will support CLOB which is a string.

Andy
Reply With Quote
  #3 (permalink)  
Old 02-23-04, 10:06
dr_suresh20 dr_suresh20 is offline
Registered User
 
Join Date: Sep 2003
Posts: 218
great! many thanks for your response.
Reply With Quote
  #4 (permalink)  
Old 03-09-04, 11:12
dr_suresh20 dr_suresh20 is offline
Registered User
 
Join Date: Sep 2003
Posts: 218
One more query on this front:

Can we search on a BLOB column? We want to perform text search based on blob column value but unable to do so.

SELECT DISTINCT col1
FROM <table>
WHERE col2 like BLOB('%%.%Wk46-2003%')

Can someone tell me how text searches on a blob column done... thanks in advance.

I am using db2 8.1.4a on win2k.
Reply With Quote
  #5 (permalink)  
Old 03-10-04, 08:10
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I am soory, I cannot help you with blobs. Maybe you should try asking the question is a new thread.

Andy
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