Integers

suggest change

Exact 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

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents