Connecting Tech Pros Worldwide Help | Site Map

To make table data case insensitive

  #1  
Old May 31st, 2007, 07:25 PM
Member
 
Join Date: Feb 2007
Posts: 36
Hi,
The table data in my database is set to be case sensitive.
How will i make it to case insensitive.
  #2  
Old June 1st, 2007, 05:34 AM
debasisdas's Avatar
Moderator
 
Join Date: Dec 2006
Location: Bangalore ,India
Posts: 7,485
Provided Answers: 1

re: To make table data case insensitive


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
  #3  
Old June 1st, 2007, 09:46 AM
chandu031's Avatar
Expert
 
Join Date: Mar 2007
Posts: 76

re: To make table data case insensitive


Quote:
Originally Posted by getmeidea
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.
  #4  
Old June 13th, 2007, 08:50 AM
Member
 
Join Date: Feb 2007
Posts: 36

re: To make table data case insensitive


Quote:
Originally Posted by debasisdas
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
  #5  
Old June 13th, 2007, 09:53 AM
debasisdas's Avatar
Moderator
 
Join Date: Dec 2006
Location: Bangalore ,India
Posts: 7,485
Provided Answers: 1

re: To make table data case insensitive


either u need to store data using functions or retrive using functions to compare.
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can create case-insensitive database in oracle? Madjid Nasiri answers 5 June 27th, 2008 06:54 PM
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit answers 0 November 13th, 2005 03:15 AM
How can create case-insensitive database in oracle? Madjid Nasiri answers 5 July 19th, 2005 10:34 PM
complete newby who is keen to make a search page WindAndWaves answers 7 July 17th, 2005 10:52 AM