The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Databases
> MySQL Help
|
Get an error related to table does not exist in mysql
Discuss Get an error related to table does not exist in mysql in the MySQL Help forum on Dev Shed. Get an error related to table does not exist in mysql MySQL Help forum discussing administration, SQL syntax, and other MySQL-related topics. MySQL is an open-source relational database management system (RDBMS).
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

February 12th, 2013, 04:36 AM
|
|
Contributing User
|
|
Join Date: Dec 2004
Posts: 259
Time spent in forums: 4 Days 55 m 36 sec
Reputation Power: 0
|
|
|
Get an error related to table does not exist in mysql
I have two tables named tmpGraph and tmpSummary. In the development environment, my team able to retrieve data from these two tables. We used tmpGraph and tmpSummary as stated in the class diagram in our sql codes. However, once we upload our code into server, all of our codes produced error related to these two tables.
I asked my db designer how he created the physical db, he said he followed the class diagram including exact spelling of each table names.
We checked physical db on server and our workstation using phpMyAdmin, the tables spelled as followed: tmpgraph and tmpsummary. But how come, we did not encounter this problem at development environment but our code produced error once we upload to server?
Last edited by wackyflik : February 12th, 2013 at 06:16 PM.
|

February 12th, 2013, 04:46 AM
|
 |
pollyanna
|
|
Join Date: Jul 2012
Location: Germany
|
|
Hi,
whether or not table names are case sensitive depends on the operating system and the MySQL configuration. So using anything other than lowercase is simply a bad idea (although many people seem to love playing with leTtEr StYlE).
|

February 12th, 2013, 05:56 AM
|
|
|
Quote: | Originally Posted by Jacques1 Hi,
whether or not table names are case sensitive depends on the operating system and the MySQL configuration. So using anything other than lowercase is simply a bad idea (although many people seem to love playing with leTtEr StYlE). |
Except that proper use of mixed case aids readability.
__________________
The moon on the one hand, the dawn on the other:
The moon is my sister, the dawn is my brother.
The moon on my left and the dawn on my right.
My brother, good morning: my sister, good night.
-- Hilaire Belloc
|

February 12th, 2013, 07:16 AM
|
 |
pollyanna
|
|
Join Date: Jul 2012
Location: Germany
|
|
|
That's what the underscore is for.
|

February 12th, 2013, 12:02 PM
|
 |
SQL Consultant
|
|
Join Date: Feb 2003
Location: Toronto Canada
|
|
Quote: | Originally Posted by SimonJM Except that proper use of mixed case aids readability. | no it does not

|

February 12th, 2013, 06:17 PM
|
|
Contributing User
|
|
Join Date: Dec 2004
Posts: 259
Time spent in forums: 4 Days 55 m 36 sec
Reputation Power: 0
|
|
|
thanks for the reply guys. So all of you suggesting table name with underscore instead of mixing uppercase and lowercase characters?
|

February 12th, 2013, 08:07 PM
|
 |
Lost in code
|
|
|
|
Quote: | So all of you suggesting table name with underscore instead of mixing uppercase and lowercase characters? |
All? no. A majority? yes.
As someone who has recently had to migrate an application with a 300 table database using mixed case table names from a Windows server to a Linux server, I highly highly highly recommend that you always use only lowercase table names with underscores.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|