If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Case insensitive

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-19-06, 12:03
zodehala zodehala is offline
Registered User
 
Join Date: Jan 2006
Posts: 24
Case insensitive

How can i do "make tables name case insensitive" ?
Reply With Quote
  #2 (permalink)  
Old 12-19-06, 13:11
dbmab dbmab is offline
Registered User
 
Join Date: Apr 2006
Location: Denver, Co. USA
Posts: 240
Table names (and column names) are already case insensitive.

If you had a problem it might be because of a typo which mixed l and 1 or 0 and O...
Reply With Quote
  #3 (permalink)  
Old 12-19-06, 13:33
zodehala zodehala is offline
Registered User
 
Join Date: Jan 2006
Posts: 24
Quote:
Originally Posted by dbmab
Table names (and column names) are already case insensitive.

If you had a problem it might be because of a typo which mixed l and 1 or 0 and O...
how can i edit
Reply With Quote
  #4 (permalink)  
Old 12-21-06, 02:32
Yveau01 Yveau01 is offline
Registered User
 
Join Date: Dec 2005
Location: Tilburg, Netherlands
Posts: 73
Depends on the OS if they're case (in)sensitive. On my Linux (Debian) distro, they are case sensitive !!! Redmond's OS probably is case insensitive ...
Use the 'alter table' statement ... or even better: simply correct the SQL script, either way, make sure you reference to the correct table or column.

Gr,
Yveau
__________________

> SELECT * FROM users WHERE clue > 0;
Empty set (0.00 sec)


Last edited by Yveau01; 12-21-06 at 04:49.
Reply With Quote
  #5 (permalink)  
Old 12-22-06, 11:06
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,259
I think its mixed
agree on SUSE Linux (And therefore probably all Linux distros) MySQL is case sensitive .. ie you have to be precise in what you sepecify (as you should in any case)
on Winwoes (or at least XP) its mixed. it seems to display as case insensitive and with some applicatons is case insensitive.. but sometimes its case sensitive.

I think MySQL handles the column names OK, it seesm to screw up the database name and table names.. the appear all lower case.. not a problem, excpet that most of the stuff I do is form a Linux Environment and Im used to usign captalisation to to addmeaning to table names eg ForeName rather than FORENAME, or forename or whatever.


confused.... I sure as heck am....
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #6 (permalink)  
Old 12-22-06, 11:34
dbmab dbmab is offline
Registered User
 
Join Date: Apr 2006
Location: Denver, Co. USA
Posts: 240
I referred to the manual and this is operating system specific and even file system specific (in the case of Mac HFS+/UFS.) There is a startup variable lower_case_table_names that can force the creation and testing to lower case, but the default setting for this variable is different for Unix/Win/Mac..., which results in operating system differences. On Unix, the default value of lower_case_table_names is 0. On Windows the default value is 1. On Mac OS X, the default value is 2.

Considering that databases should be independent of the operating systems that they are running on, the above operation was a poor choice by the designers (the naming of tables should be independent of any filesystem properties.)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On