0%

MySql 记录显示一行 GROUP_CONCAT()

MySql 记录显示一行 GROUP_CONCAT()

1
2
3
4
5
6
7
8
9
select 
i.order_sn,
group_concat(g.good_name SEPARATOR '*'),
i.buyer from pop_order_info as i
left join pop_order_goods as g
on i.order_sn = g.order_sn
where i.order_sn='13101000258822'
AND i.buyer LIKE '%张%'
AND g.good_name LIKE '%K%';
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!