Binary string search on one field.

Posted by CrazyJoe on Stack Overflow See other posts from Stack Overflow or by CrazyJoe
Published on 2010-04-16T14:41:01Z Indexed on 2010/04/16 15:23 UTC
Read the original article Hit count: 183

Filed under:
|

I have 300 boolean fields in one table, and im trying to do somithing like that:

One string field:

10000010000100100100100100010001

Ha a simple way to do a simple search os this field like:

select * from table where field  xor "10000010000100100100000000010001"

Im tring this but is to long:

select * from teste where mid(info,2,1) and mid(info,3,1)

:) Help!!

© Stack Overflow or respective owner

Related posts about mysql

Related posts about query