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 > General > Database Concepts & Design > lettercase consideration?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-01-08, 20:35
Panoy Panoy is offline
Registered User
 
Join Date: Mar 2007
Posts: 77
lettercase consideration?

Hi to all,

I just want to ask if there is any difference if you use ALL CAPITAL LETTERS when supplying values for the fields in the record that you want to insert/add.

Ex:

1.) Table_1 consists of 3 columns - ID, COL1, COL2
2.) I inserted a record with these: INSERT INTO Table_1 VALUES ('AA','EE');

What if i use the same values in inserting a record but the case of the values were in lowercase? By using lowercase/small letters when inserting records, does it reduced the size/space compared to using UPPERCASE letters?

I know that the question seems so dumb, but hey, I am not afraid to ask.
I am just curious and it all part of knowing and learning.

Thanks and god bless.
__________________
Programming is fun!
Reply With Quote
  #2 (permalink)  
Old 04-01-08, 23:15
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
No, characters are characters in databases. A "W" is the same size to the database as a "w" or an "i". They might well print as different sizes, they might even appear on the screen as different sizes, but they're all the same on the disk.

-PatP
Reply With Quote
  #3 (permalink)  
Old 04-02-08, 00:22
Panoy Panoy is offline
Registered User
 
Join Date: Mar 2007
Posts: 77
Do you think its a good idea to capitalise/uppercase the values of the fields of your record before inserting it to the table?

Does it have its pros and cons?
__________________
Programming is fun!
Reply With Quote
  #4 (permalink)  
Old 04-02-08, 03:09
pootle flump pootle flump is offline
King of Understatement
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 14,905
Do whatever is easiest\ most efficient (application wise)\ matches your needs. It doesn't matter how they are stored - it only matters when you display the data. And then there is no right or wrong - it is just what your users expect\ require that matters.

Of course you need to get it right:
I helped Jack off a horse <> I helped jack off a horse
__________________
Testimonial:
Quote:
pootle flump
ur codings are working excelent.
Reply With Quote
  #5 (permalink)  
Old 04-02-08, 05:18
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,246
it doesn't matter how you store information in terms of UPPER, lower, Mixed or even CaMeL case.

however it does make a big differnece in terms of presentation to the user.. all caps looks odd (and can be regarded as SHOUTING), all lower can be regarded as informal, CaMeL is fine for coding.

one thing to bear in mind is that if you are searching for text then THIS <> this <>This. so you need to think very carefully about what you want to achieve.

some languaes and some dbs allow you to be case independant, some languages have functions to clean up user input to remove case problems.. although they invariably fail on proper names (eg names of people, names of companies etc....)
Reply With Quote
  #6 (permalink)  
Old 04-02-08, 05:19
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,246
Quote:
Originally Posted by pootle flump
Do whatever is easiest\ most efficient (application wise)\ matches your needs. It doesn't matter how they are stored - it only matters when you display the data. And then there is no right or wrong - it is just what your users expect\ require that matters.

Of course you need to get it right:
I helped Jack off a horse <> I helped jack off a horse

is it just me or was that post deliberately inuendo driven, as one would expect from a true Brit?
Reply With Quote
  #7 (permalink)  
Old 04-02-08, 05:41
pootle flump pootle flump is offline
King of Understatement
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 14,905
Quote:
Originally Posted by healdem
is it just me or was that post deliberately inuendo driven, as one would expect from a true Brit?
I started with the final sentence and then cobbled together a clumsy pre-amble to justify me posting it
__________________
Testimonial:
Quote:
pootle flump
ur codings are working excelent.
Reply With Quote
  #8 (permalink)  
Old 04-02-08, 06:10
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Quote:
Originally Posted by pootle flump
Of course you need to get it right:
I helped Jack off a horse <> I helped jack off a horse
One of bash.org's finest
__________________
George
Twitter | Blog
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