473,404 Members | 2,137 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,404 software developers and data experts.

case insensitive select

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
Jan 24 '06 #1
1 1943
Odd Bjørn Andersen wrote:
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?

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
--
Serge Rielau
DB2 Solutions Development
DB2 UDB for Linux, Unix, Windows
IBM Toronto Lab
Jan 24 '06 #2

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

Similar topics

3
by: cowboyx | last post by:
Is there a way to configure PHP to use case-insensitive variable names? I'd like to do this... $dbVars = pg_query( $connection, "SELECT columnName1, columnName2, columnName3 FROM table WHERE...
1
by: noah | last post by:
Can anyone think of a way to make array keys case insensitive? An option on any recent PHP would be to convert all array keys to lowercase using the standard array_change_key_case() function. As...
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....
2
by: Stephanie | last post by:
I am working in about 4 different languages these days, and my command of ASP is lessening. I *thought* that string equality was case insensitive. If I had sType = "MARK" and later If sType...
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 ...
3
by: Tee | last post by:
Hi, How to case select with case-insensitive ? eg: Select Case Textbox1.Text Case "Hello" -- ( this will include "Hello", "HELLO", "hElLo" etc etc. ) Case "Bye"
6
by: David Garamond | last post by:
in oracle 10g, you can issue: ALTER SESSION SET NLS_COMP = ansi; ALTER SESSION SET NLS_SORT = binary_ci; do you think this is an elegant solution for case insensitive sorting & searching? is...
1
by: iksando | last post by:
Hello, I'm looking for solution in case insensitive search in MySql. Table exemple. CREATE TABLE `pozycje` ( `id` int(11) NOT NULL auto_increment, `eid` varchar(20) collate latin2_bin...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.