When considering only two possible values: 0 and 1 or True and False, it is quite obvious that BIT (1) does a better job:
- BIT (1) sets only 2 possible values: 0 and 1, while TINYINT (1) can take any integer values ββless than 10 (0,1,2,3,4,5 ....), which can be ambiguous.
- Multiple BIT (1) columns can be combined into bytes so that they require less space than multiple TINYINT (1) columns.
So why does MySQL interpret Boolean as TINYINT (1) but not BIT (1)? Is there any advantage to using TINYINT (1) over BIT (1) when processing boolean values?
Lazniko
source share