标签:io 数据 ar sql mysql ui 字符串 user
mysql 中 FIND_IN_SET 是判断某个字符串是否在带逗号的字符串中
例如
SELECT t.group_id, COUNT(group_id) tsum FROM (SELECT group_id FROM xx WHERE FIND_IN_SET(openid,'qqqwqnfocFq5IL2sXB2Qu0I,oarwerrr-2KRah_TklJEomljhlKg,oaSiouEgtr5t5utLFU8-evmkn5BwQ3_c') AND user_uuid = 'xxxxxxxxxxxx') t GROUP BY group_id;这样就能找出相匹配的数据
后者是带逗号的字符
mysql FIND_IN_SET 用法,布布扣,bubuko.com
标签:io 数据 ar sql mysql ui 字符串 user
原文地址:http://blog.csdn.net/xuyw10000/article/details/38420973