Storage requirements question

admin

Administrator
Staff member
The MySQL manual says TINYINT has a storage requirement of 1 byte. If I have the number "123" stored, does this mean it takes up 1 byte? Or does it mean it takes up 1 byte for each number?

If it's 1 byte for each number, and I have the field length set at "2" does that mean it takes up 2 bytes no matter what the actual length of number is?
 
Back
Top