Integers
suggest changeExact integer types. The ranges below are SQL Server. Other dialects differ; MySQL TINYINT is signed by default (−128 to 127), not 0 to 255.
| Data type | Range | Storage |
|---|---|---|
| bigint | −2^63 to 2^63−1 | 8 bytes |
| int | −2^31 to 2^31−1 | 4 bytes |
| smallint | −2^15 to 2^15−1 | 2 bytes |
| tinyint | 0 to 255 | 1 byte |
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents