用到的是这个函数:
group_concat()
select group_buying_id,
group_concat(app_user_ids)
from org_user_group
group by group_buying_id
输出的结果:
select group_buying_id,
group_concat(app_user_ids)
from org_user_group
where group_buying_id=10
这是查询一条
用到的是这个函数:
group_concat()
select group_buying_id,
group_concat(app_user_ids)
from org_user_group
group by group_buying_id
输出的结果:
select group_buying_id,
group_concat(app_user_ids)
from org_user_group
where group_buying_id=10
这是查询一条
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。