Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / January 2006

Tip: Looking for answers? Try searching our database.

case insensitive select

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Odd Bjørn Andersen - 24 Jan 2006 10:34 GMT
Is there a way to achieve that a select against a database will be case
insensitive?

Meaning that 'select ' from tab1 where col1 = 'abc'' will return the same
result as 'select ' from tab1 where col1 = 'ABC'' . I know the functions
UCASE and LCASE (and TRANSLATE), but this is not what I'm after now. I am
looking for some kind of parameter (on the client or the database server)
that will achieve this.

I'm told that this is possible on both Oracle and Sql  Server. But what
about db2?

Regards
Odd B Andersen
ErgoGroup AS
Serge Rielau - 24 Jan 2006 11:56 GMT
> Is there a way to achieve that a select against a database will be case
> insensitive?
[quoted text clipped - 7 lines]
> I'm told that this is possible on both Oracle and Sql  Server. But what
> about db2?
There is no database wide parameter. You can handle case insensitivity
per column using GENERATED columns.
If you want teh whoel database to be case insensitive, why not just
normalize the data to all upper or lower caps?

Cheers
Serge
Signature

Serge Rielau
DB2 Solutions Development
DB2 UDB for Linux, Unix, Windows
IBM Toronto Lab

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.