February 2018
Intermediate to advanced
510 pages
16h 10m
English
All standard SQL integer types are supported by MySQL.
The following is a table describing the required storage and range for each integer type. Along with standard integer data types, MySQL also supports TINYINT, MEDIUMINT, and BIGINT:
|
Type
|
Storage (Bytes)
|
Minimum Value
|
Maximum Value
|
|
Signed / Unsigned
|
Signed / Unsigned
|
||
| TINYINT | 1 | -128 | 127 |
| 0 | 255 | ||
| SMALLINT | 2 | -32768 | 32767 |
| 0 | 65535 | ||
| MEDIUMINT | 3 | -8388608 | 8388607 |
| 0 | 16777215 | ||
| INT | 4 | -2147483648 | 2147483647 |
| 0 | 4294967295 | ||
| BIGINT | 8 | -9223372036854775808 | 9223372036854775807 |
| 0 | 18446744073709551615 |
The range of signed numbers includes both -ve and +ve numbers, whereas the range ...
Read now
Unlock full access