m***@bithology.nl
2007-08-31 08:49:39 UTC
Hi,
I have this question from a customer:
When using varchar's in my table definitions I have to specify the maximum length. Why would I specify a different length for each column (Name varchar20, Street varchar30, Email varchar40) when I can simply define a varchar(255) for each column (not bothering about choosing lenghts)?
Is there a difference between the two regarding performance and storage?
Cheers,
Martin
I have this question from a customer:
When using varchar's in my table definitions I have to specify the maximum length. Why would I specify a different length for each column (Name varchar20, Street varchar30, Email varchar40) when I can simply define a varchar(255) for each column (not bothering about choosing lenghts)?
Is there a difference between the two regarding performance and storage?
Cheers,
Martin