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?
(Assuming using MySQL >= 5.0.3.)
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:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With