Numeric data types store numbers. Choose the smallest type that can accommodate your data.
| Type | Storage | Range | Example |
|---|---|---|---|
| tinyint | 1 byte | 0‑255 | 200 |
| smallint | 2 bytes | -32,768‑32,767 | -1200 |
| int | 4 bytes | -2,147,483,648‑2,147,483,647 | 1024 |
| bigint | 8 bytes | -9,223,372,036,854,775,808‑9,223,372,036,854,775,807 | 1234567890123 |
| decimal(p,s) | Varies | Exact numeric | decimal(10,2) = 12345.67 |
| float | 4 or 8 bytes | Approximate numeric | 3.14159 |