What is the size of column of int(11)
in mysql in bytes?
And Maximum value that can be stored in this columns?
转载于:https://stackoverflow.com/questions/5634104/what-is-the-size-of-column-of-int11-in-mysql-in-bytes
What is the size of column of int(11)
in mysql in bytes?
And Maximum value that can be stored in this columns?
转载于:https://stackoverflow.com/questions/5634104/what-is-the-size-of-column-of-int11-in-mysql-in-bytes
An INT
will always be 4 bytes no matter what length is specified.
TINYINT
= 1 byte (8 bit)SMALLINT
= 2 bytes (16 bit)MEDIUMINT
= 3 bytes (24 bit)INT
= 4 bytes (32 bit)BIGINT
= 8 bytes (64 bit).The length just specifies how many characters to display when selecting data with the mysql command line client.
... and the maximum value will be 2147483647 (Signed) or 4294967295 (Unsigned)