直接上代码:
select user_id, user_name from income_tl;
select user_id, group_concat(user_name order by user_name desc separator '|') sum_string from income_tl group by user_id;
运行结果:
欢迎关注我的公众号“彤哥读源码”,查看更多“源码&架构&算法”系列文章, 与彤哥一起畅游源码的海洋。
直接上代码:
select user_id, user_name from income_tl;
select user_id, group_concat(user_name order by user_name desc separator '|') sum_string from income_tl group by user_id;
运行结果:
欢迎关注我的公众号“彤哥读源码”,查看更多“源码&架构&算法”系列文章, 与彤哥一起畅游源码的海洋。