May 2020
Beginner
564 pages
14h 9m
English
The following table lists the numeric data types available in MySQL. When the syntax shown in the following table includes square brackets ([]), this indicates an optional part of the syntax. For example, in BIT[(size)], the square brackets indicate that the size is optional:
| Data Type | Description | Storage Used |
| INT(size) | Stores whole numbers. Ranges from -2147483648 to 147483647 for signed and 0 to 4294967295 for unsigned. | 4 bytes |
| INYINT(size) | Stores whole numbers. Ranges from -128 to 127 for signed and 0 to 255 for unsigned. | 1 byte |
| SMALLINT(size) | Stores whole numbers. Ranges from -32768 to 32767 for signed and 0 to 65535 for unsigned. | 2 bytes |
| MEDIUMINT(size) | Stores whole numbers. Ranges from ... |
Read now
Unlock full access