GROUP_CONCAT为MySQL提供的函数,MaxCompute对应为wm_concat。...a b c
zhang 1 10
wang 2 20
wang 3 30
guo 6 60
wang 2 30
场景一.将a进行合并,不去重
MySQL:
select a, group_concat...(b) from t group by a;
MaxCompute:
select a, wm_concat(',', b) as b from t group by a;
|a| b |
|zhang...(concat_ws(':', b, c))
from t
group by a;
MaxCompute:
(1).
select a, wm_concat(',', concat_ws(':',b...,c)) as b from t
group by a;
(2).
select a, wm_concat(',', concat(b,':',c))
from t group by a;
|a|