My question is quite simple. When I design a schema I use what I believe
to be the most appropriate data type for a given attribute. So for
example if the range of values for a number is 0 to 999 I would use an
unsigned smallint. I can find much information on data types but nothing
that guides me on storage space. In my old world I knew that a raw
smallint needed 2 bytes of disk space. I have been unable to find any
information for MySQL that provides what I am interested in. Please can
you point in the direction of some information
to be the most appropriate data type for a given attribute. So for
example if the range of values for a number is 0 to 999 I would use an
unsigned smallint. I can find much information on data types but nothing
that guides me on storage space. In my old world I knew that a raw
smallint needed 2 bytes of disk space. I have been unable to find any
information for MySQL that provides what I am interested in. Please can
you point in the direction of some information