473,325 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

DB2 Clob Serach case insensitive

Hello DB2 Experts,
I have a Clob column and I need to search for a String in that.
Case insensitive search.

I tried,
select * from MyTable where UPPER(varchar(CLOB_COLUMN)) LIKE
'%some-data%'

[IBM][CLI Driver][DB2] SQL0171N The data type, length or value of
argument "1" of routine "UPPER" is incorrect. SQLSTATE=42815

DB2 version: DB2 on OS/390 07.01.0001
Appreciate any help.
Thanks,
Srini.
Nov 12 '05 #1
3 8034
sr******@yahoo.com (Srini) wrote in message news:<23**************************@posting.google. com>...
Hello DB2 Experts,
I have a Clob column and I need to search for a String in that.
Case insensitive search.

I tried,
select * from MyTable where UPPER(varchar(CLOB_COLUMN)) LIKE
'%some-data%'

[IBM][CLI Driver][DB2] SQL0171N The data type, length or value of
argument "1" of routine "UPPER" is incorrect. SQLSTATE=42815

DB2 version: DB2 on OS/390 07.01.0001
Appreciate any help.
Thanks,
Srini.

In "DB2 Universal Database for OS/390 and z/OS SQL Reference Version
7", for UCASE or UPPER function, it says that "string-expression .....
A character string argument ..... and must have an actual length that
is not greater than 255."

So, it seems that you can not change a string longer than 255 to upper
case with one UPPER or one TRANSLATE function.
Nov 12 '05 #2
Tokunaga, Thank you for your quick response.
Are there any other options OR is it Impossible to do case insensitive
search on DB2 Clob columns [DB2 on os/390 ver 7.1]

Thanks,
Srini.
Nov 12 '05 #3
Srini wrote:
Tokunaga, Thank you for your quick response.
Are there any other options OR is it Impossible to do case insensitive
search on DB2 Clob columns [DB2 on os/390 ver 7.1]


You could write your own UDF.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: freak | last post by:
hi i have problems reading an oracle(9i) clob from a php-script with the MDB-class from pear. the table files has 3 fields: id integer document clob picture clob
32
by: Elliot Temple | last post by:
Hi I have two questions. Could someone explain to me why Python is case sensitive? I find that annoying. Also, why aren't there multiline comments? Would adding them cause a problem of some...
5
by: Madjid Nasiri | last post by:
Hi, I am basic in oracle. My Old programs write with Delphi and Databases: Access, Paradox, MySQL, Microsoft SQL. I write my code (SQL code) case-insensitivae, but now i need use oracle database....
12
by: Relaxin | last post by:
Is there a way to make Postgresql case-INSENSITIVE? Thanks
2
by: Tom | last post by:
Hi, Our development team is adding DB2 8.1 compatibility to our existing application which currently supports SQLServer 2000. Our code is written to take advantage of SQLServer's ability to ...
14
by: Christian Sell | last post by:
Hello, I am running into a problem with PGs case sensitivity with regard to column and table names. I am using program components that require the object names returned from database metadata...
3
by: t2581 | last post by:
Hi , I have database db2 udb 7.2 with following table and datatype CREATE DISTINCT TYPE APP.NOTEPAD AS SYSIBM .CLOB(4096); CREATE TABLE APP.AP_NOTE_PAD ( CONTROL_LOCATION INTEGER NOT NULL...
0
by: srinivasaraonagisetty | last post by:
hi, I am faceing one problem, while inserting the data in db2 using clob. actually i am writing this type code: public class DBParam { private InputStream inputstream; private static int...
3
by: db2admin | last post by:
Hello all, I have table with CLOB column length of ~65K. application is searching from this table by CLOB and i can not create index on it. I know IBM recommends using DB2 Net Search Extender...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.