我有这么个表2个字段(mysql)
id(int型) 和 otherinfo(text型)
比如说有如下记录
id  otherinfo
1   {"sex":1,"name","xiao1"}
2   {"sex":0,"name","xiao1"}
3   {"sex":1,"name","xiao1"}
4   {"sex":0,"name","xiao1"}
我现在想取到sex等于1的记录
id  otherinfo
1   {"sex":1,"name","xiao1"}
3   {"sex":1,"name","xiao1"}注(因为otherinfo 之中的项数是可变的,所以才用这个办法。采用json串的形式)不晓得怎么查,希望大家帮帮忙。