今有一个列表,列表中某字段A,是逗号间隔的列表字符串。需要从列表中,查询条件为A字段查询包含某数值z的结果。
select * from table where find_in_set(z,A)
select * from table where A in (z)只能完全匹配
select * from table where A in (z)
模糊匹配,坑存在的问题,查询1可能查询到11select * from table where A like '%z%'
select * from table where A like '%z%'