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 > all of my MySQL tables are lowecase

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-23-09, 05:37
Danmln Danmln is offline
Registered User
 
Join Date: Sep 2009
Posts: 4
all of my MySQL tables are lowecase

Hi experts,


i need some help.

I have instaled latest WAMP utility(Apache+PHP+MySQL).

I have Windows XP installed on my PC.


The problem is that , all table names are lowercase. I want, if it's possible to be case sensitive (lowercase or/and uppercase). Is this possible?

Any help/hint would be appreciated.

Thanx in advance.
Reply With Quote
  #2 (permalink)  
Old 09-23-09, 05:57
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,258
for MySQL on MS Windows is case insenstivie, on *nix its case sensitive, the origins and histroy go back a long long way

so if your create script created tables with mixed case the tables should be mixed case but only displayed as lower case.

the problem comes when you run the server on a case sensitive platform, there is a possibility that you will have problems
so the resolution to my mind is either to only use lower case
OR
have your db server run on a similar server to the production server
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 09-23-09, 06:54
Danmln Danmln is offline
Registered User
 
Join Date: Sep 2009
Posts: 4
my PC act like development system but on production server is installed Linux... and in PHP code it's more readable if i write table names uppercase.

but the problem is when i export queryies from my PC ... in SQL queryies, table names are lowercase.

this is the reason for which i want that on my PC all table names to be uppercase.
Reply With Quote
  #4 (permalink)  
Old 09-23-09, 07:11
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Personally I name all my objects in lower case only. It is one of the rules I have the team follow on all our new developments (on existing ones we follow the convention in place per db, for consistency).
__________________
George
Twitter | Blog
Reply With Quote
  #5 (permalink)  
Old 09-23-09, 07:54
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
use all lower case for identifiers, all upper case for sql keywords
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #6 (permalink)  
Old 09-28-09, 01:22
Atli Atli is offline
Registered User
 
Join Date: Feb 2009
Location: Iceland
Posts: 14
Using mixed-case for your identifiers is fine, as long as it remains consistent throughout your project.

If you think that will be hard to accomplish, just use lower-case.

But in any case, if you are working on a Windows based MySQL server, always double check your identifiers are in fact correctly spelled.
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