M
Maarkr
a student asked me this about data storage...i read that a text field is a
string data type that uses 10 bytes plus 2 bytes per character... does this
mean that the size of the text field does not matter (five characters in a
field uses 20 bytes, no matter if the field size is 5 or 50 or 255); or does
the field size use all bytes and assigns empty values to all unused portions
of the field (a two character field size uses 10 + 2 x 2 = 14, and a 200
character field uses 10 + 2 x 200 = 410, no matter how many actual characters
are stored)? If the former is true, then why not make your text fields
default to 255 and you should never need to change it? I told him a text
string is the actual characters (including spaces) but it was just good
design to limit the field size for useability. ????
string data type that uses 10 bytes plus 2 bytes per character... does this
mean that the size of the text field does not matter (five characters in a
field uses 20 bytes, no matter if the field size is 5 or 50 or 255); or does
the field size use all bytes and assigns empty values to all unused portions
of the field (a two character field size uses 10 + 2 x 2 = 14, and a 200
character field uses 10 + 2 x 200 = 410, no matter how many actual characters
are stored)? If the former is true, then why not make your text fields
default to 255 and you should never need to change it? I told him a text
string is the actual characters (including spaces) but it was just good
design to limit the field size for useability. ????