mysql - Where does the max length of 255 for CHAR fields come from? -


i mean 255 doesn't natural in context of computer science.

i guess it's related 256, makes more sense in same context, wonder how.

one byte = 8 bits. 2 ^ 8 == 256 distinct values, have handle 0, range 0-255.


Comments

Popular posts from this blog

php - How to build a web site which gives a sub-domain dynamically to every registered user? -

android - View with visibility state GONE taking up space on screen -