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 > simple varchar Q

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-04-04, 10:34
rack rack is offline
Registered User
 
Join Date: Mar 2004
Location: sweden
Posts: 4
simple varchar Q

does the length of a varchar change performance a lot?
I'm not sure if I should have 2 diifferent tables,
one for
pkey | num.value | varchar(50)
and one for
pkey | num.value | varchar(2200)

or if I should only use the last one.

Do I gain any performance if I split them up into two tables?
Reply With Quote
  #2 (permalink)  
Old 08-16-04, 05:51
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
The answer may depend on your DBMS. For Oracle, it would make no difference, as a VARCHAR only uses as much storage as it requires for the value it contains.
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
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