用到的是這個函數:
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
這是查詢一條