select * from user where substr(user_flag,4,1) = 1 //查询user_flag第4位的第1个字符等于1的内容。 substr(内容,第几位开始,取几位)