I have 300 boolean fields in one table, and I’m trying to do something like this:
One string field:
10000010000100100100100100010001
Here’s a simple way to do a simple search of this field like:
select * from table where field xor "10000010000100100100000000010001"
I’m trying this but is to long:
select * from test where mid(info,2,1) and mid(info,3,1)
🙂 Help!!
A citation from the book High Performance MySQL:
UPD:
A possible solution in your case if all the strings are of the same length (I’ll be surprised if they are not):