Hi,
I just wanted to be sure that there is no similiar way in DB2Express
like there is in iSeries. In iSeries you can do that with driver properties.
I have done this think with UCASE and it works fine. And after searching
all around www I am quite sure now that DB2 can not do like search case
insensitive way...
The problem is that my application runs on iSeries or DB2 database, and
that iSeries does some extra work now with that UCASE function. It
really don't need to do so.
Well of course I could write my code that way it checks whether database
reside on iSeries and if so sql can be executed without UCASE()...
Knut Stolze wrote:
erkki wrote:
Hi,
is there some DB parameter or JDBC driver property that says 'LIKE'
search should not be case sensitive?
I use DB2 Express 8.1.5 and Websphere 5.0.2. I don't use WAS
Connectionpool in this case.
UCASE(fieldname) is not an option.
Why is this not an option?
You could:
(a) insert only upper case values in your tables
(b) use your own functions as described here
http://www.ibm.com/developerworks/db...301stolze.html