1 byte = 8 bits
So, does this mean 1 byte can only hold one character? E.g.:
\"16\" uses 2 bytes , \"9\" uses 1 byte , \"a\" uses
The syntax of TINYINT
data type is TINYINT(M)
,
where M
indicates the maximum display width (used only if your MySQL client supports it).
The (m) indicates the column width in SELECT statements; however, it doesn't control the accepted range of numbers for that field.
A TINYINT is an 8-bit integer value, a BIT field can store between 1 bit, BIT(1), and 64 >bits, BIT(64). For a boolean values, BIT(1) is pretty common.
TINYINT()