GROUP_CONCAT为MySQL提供的函数,MaxCompute对应为wm_concat。...|1|
|wang | 2,3,2|
|guo | 6 |
场景二.将a进行合并,去重
MySQL:
select a, group_concat(distinct b) from t group...by a;
MaxCompute:
select a, wm_concat(distinct ',', b) as b from t group by a;
|a| b |
|zhang|1|
|wang...by a;
|a| b |
|zhang|1|
|wang | 2,2,3|
|guo | 6 |
场景四.将a进行合并且排序,去重
MySQL:
select a, group_concat(distinct...distinct a, b
from t
order by a, b asc)
group by a;
|a| b |
|zhang|1|
|wang | 2,3|
|guo