473,386 Members | 1,819 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,386 software developers and data experts.

To make table data case insensitive

Hi,
The table data in my database is set to be case sensitive.
How will i make it to case insensitive.
May 31 '07 #1
4 4118
debasisdas
8,127 Expert 4TB
Data in table is not case-sensitive, untill unless u want to to be by using some functions like UPPER or LOWER of some few other
.
If u r using any of those remove that and store data directly into the table.

But if your problem is different ,please do post back
Jun 1 '07 #2
chandu031
78 Expert
Hi,
The table data in my database is set to be case sensitive.
How will i make it to case insensitive.
Hi (getmeidea?),

I assume your requirement is something like this:
If say a value 'a' has gone in for a filed ,then a value 'A' should not go in .

Then one of the methods is to create a unique index on this field
Expand|Select|Wrap|Line Numbers
  1.  
  2. create unique index <index_name> on <table>(lower(<field>));
  3.  
  4.  
You can use either lower or upper, it doesnt matter. With this, if a value goes in , the same value cannot go in irrespective of the case. Ofcourse , to implement this you will have to identify all the varchar fields in your table and create seperate indexes on them.

If this is not your requirement, then please do let me know.
Jun 1 '07 #3
Data in table is not case-sensitive, untill unless u want to to be by using some functions like UPPER or LOWER of some few other
.
If u r using any of those remove that and store data directly into the table.

But if your problem is different ,please do post back
Hi,

Using upper() and lower() function is the not the proper solution i need. Because when i will be passing query from so many places in my front-end application. Hence i may have to take care of using this upper() and lower(). Instead if the database do the comparison ignoring the case, it will be more comfortable.

So let me know how to set that property in database.

Thanking you,
Dileep
Jun 13 '07 #4
debasisdas
8,127 Expert 4TB
either u need to store data using functions or retrive using functions to compare.
Jun 13 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

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...
12
by: Relaxin | last post by:
Is there a way to make Postgresql case-INSENSITIVE? Thanks
13
by: Tom Anderson | last post by:
Afternoon all, MacOS X seems to have some heretical ideas about the value of case in paths - it seems to believe that it doesn't exist, more or less, so "touch foo FOO" touches just one file,...
1
by: JC | last post by:
I'd like to build a form which does a case insensitive wild card search on a character field. For example, the resulting SQL might be 'select last_name from student where ucase(last_name) like...
2
by: John | last post by:
Does anyone know how to how to performance case-insensitive search on XML data type in SQLServer 2005? Or I have to convert all the xml data to lower case before I store it? Thanks in advance....
1
by: benhoefer | last post by:
I have been searching around and have not been able to find any info on this. I have a unique situation where I need a case sensitive map: std::map<string, intimap; I need to be able to run a...
7
by: Adrian | last post by:
Hi, I want a const static std::set of strings which is case insensitive for the values. So I have the following which seems to work but something doesnt seem right about it. Is there a better...
14
by: Mosfet | last post by:
Hi, what is the most efficient way of doing a case insensitive comparison ? I am trying to write a universal String class and I am stuck with the case insensitive part : TCHAR is a char in...
2
by: Alex Weber | last post by:
weird issue i ran into today... its possible to define case-insensitive constants outside the scope of a class using: define('name', 'value', false); however, you cannot use define() for...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.