Josh Berkus wrote:
> Carolyn, Jeff,
>
> I have to disagree with this, Jeff. A six-digit integer takes up only
> 20% of the storage space of a 6-character string. As such, it will be
> faster to index and faster to retrieve, and faster to perform JOINs and
> sorts. So if Carolyn will never want to store anything but numbers in
> the field, integer is ideal.
That is all true, and still you should not restrict the possible content to something that got nothing to do
withthe nature of the data.
Things like account numbers, zip codes, phone numbers, whatnot ARE CHARACTER SEQUENCES - period. How
sure can Carolyn be that there will never be an account number where leading zeroes are significant? That true
already for zip codes (and by the way, european zipcodes are alphanumeric).
And what is the cosmic significance of my phone number plus your creditcard number divided by Carolyn's
shoesize?:-)
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck@Yahoo.com #
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com