What’s the difference between SMALLINT, INT, and
BIGINT?
What’s the difference between SMALLINT, INT, and
BIGINT?
Student
The Anubhav portal was launched in March 2015 at the behest of the Hon'ble Prime Minister for retiring government officials to leave a record of their experiences while in Govt service .
Difference Between SMALLINT, INT, and BIGINT
These data types store integer (whole) numbers but differ in the range they can hold and the space they use.
Summary
SMALLINT → Small range, less space
INT → Standard integer
BIGINT → Very large range
Use SMALLINT for small values (e.g., age), INT for most numeric IDs, and BIGINT for very large counts (e.g., global user IDs).
Numeric Integer Data Types in SQL Server
Key Points
Best Practice
Always pick the smallest type that fits the data range.