Reply
SQL Query Help, Table Names
Old 02-26-2010, 09:24 AM SQL Query Help, Table Names
Average Talker

Posts: 20
Name: James
Trades: 0
If someone created a query for example

SELECT * FROM TMP_Items

Would this be the same?

SELECT * FROM TMP_ITEMS

Similar would these to yeild different results?

SELECT items from TMP_ITEMS

and

SELECT Items from TMP_ITEMS
__________________
http://www.jamessawyer.co.uk
TG12 is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 02-26-2010, 12:04 PM Re: SQL Query Help, Table Names
chrishirst's Avatar
Super Moderator

Posts: 31,017
Location: Blackpool. UK
Trades: 0
Depending on the OS and the DB server, table names and column names may be case sensitive.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Code Samples | Crowded Nightclub? | Random Ramblings
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-27-2010, 11:54 AM Re: SQL Query Help, Table Names
Experienced Talker

Posts: 32
Trades: 0
Usually, SQL is not case sensitive. So basically, the queries are just the same.

Thanks.
robert1971 is offline
Reply With Quote
View Public Profile
 
Old 02-27-2010, 05:16 PM Re: SQL Query Help, Table Names
chrishirst's Avatar
Super Moderator

Posts: 31,017
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by robert1971 View Post
Usually, SQL is not case sensitive. So basically, the queries are just the same.

Thanks.
Not quite, commands and string literals are NOT case sensitive, table names and column names case sensitivity will depend on the Operating System the DB server is running on.

Any DB server running on Windows will be case insensitive while DB servers running on Unix/Linux will be case sensitive.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Code Samples | Crowded Nightclub? | Random Ramblings
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to SQL Query Help, Table Names
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.10403 seconds with 13 queries