An unsigned integer stores whole numbers without negative values. Compared with a signed integer using the same storage size, it can represent a larger maximum value. section 4.6
Keep these practical rules in mind:
- TINYINT, SMALLINT, INT, and BIGINT use 1, 2, 4, and 8 bytes, respectively. section 4.6
- An unsigned TINYINT reaches 255, while a signed TINYINT reaches 127. section 4.6
- An unsigned INT reaches 4,294,967,295; values beyond that require BIGINT. section 4.6
Choosing a type for an identifier
For a payment_id attribute, first identify it as numeric and then choose a suitable integer type. TINYINT is too small, SMALLINT may be too small for a very large store, and INT is sufficient for now; BIGINT provides more capacity. section 4.6
Compare the ranges available to signed and unsigned integer types. section 4.6








