I have been told that the maximum value for an integer in mysql is approximately 4 billion but this seems to use 10 characters. However when I specify the number of characters for integer I use 11 characters. What happens to the extra character?
Share
It’s 11 characters. The extra digit is for the
-in negative numbers. Don’t believe me, you can count here.Edit
I wrote that answer before lunch hour, and it has bothered me the whole time that I didn’t include anything on
most significant bit, because it really is very relevant in this case. So, I’m including Wikipedia’s treatment because I don’t feel like re-writing the wheel.