We can store binary values using either binary
or bit
(up to 64 bits).
What is the difference between using binary(n)
vs using bit(m)
(where n
= 8 × m
)?
Are they recognized as the same thing by MySQL?
You can store bits using BIT or BINARY - as you want. The BIT data type may be more usable in logic operations.
There is a small difference in storage: