关于逗号分隔的查询

FIND_IN_SET

格式:FIND_IN_SET(str,strlist);

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

group_concat

格式

group_concat(id)

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

id会以逗号分隔的方式展示

 

posted @ 2018-09-27 15:09  十黎九夏  阅读(729)  评论(0编辑  收藏  举报