关于逗号分隔的查询

FIND_IN_SET

格式:FIND_IN_SET(str,strlist);

strlist用逗号分隔的字符串,str是否包含的字符

group_concat

格式

group_concat(id)

select group_concat(id) from * where group by **;

id会以都分隔的方式展示

猜你喜欢

转载自www.cnblogs.com/zhengyuanyuan/p/9713176.html