Search code examples
typesintegerstoragesqldatatypes

Int data type storage always 4 bytes?


Quick question does using an INT in MySQL always result in 4 bytes of storage no matter the value, e.g. Does the value of 5 use the same amount of bytes as 2000000?

Or is the data type storage a maximum storage?


Solution

  • I am pretty sure the size does not depend on the value.