Hello,
Just a quick MySQL question. Let's say I want to store a number up to 7 digits in length, ie: 9000000 (9 million). I could store this number in several Integer fields and apply limits to the fields to only allow upto 7 digits to be inserted. My question is, when applying limits to the fields so they can only hold so much, is there any advantage/disadvantage to using one field type over another?
For example, is there any difference between:
MedInteger - Limit 7
Integer - Limit 7
The way I see it, Integer can hold much more than MedInteger, but with a Limit applied they would both take up the same amount of space in the database correct?
Right now I'm designing a database with Small, Medium, and regular Integer fields. If there's no effect on the database or wasted space, I'd rather use only "Integer" fields with different Limits.
Thanks for any help or advice!
Peter