Suppose you have two binary values:
001011 and 001111
How can you get the number of different bits in MySQL? I tried:
SELECT BIT_COUNT(BINARY 001011 ^ BINARY 001111)
This returns 6.I mean how to implement it? I means either i need from fetching mysql query or from php script?Please help.