Say you have two binary values
001011 001111
How can you get the number of different bits in MySQ
It's converting the numbers 1011 and 1111 (base 10) to binary and doing the comparison. If you did:
SELECT BIT_COUNT(11 ^ 15)
It'd work.