GROUP_CONCAT为MySQL提供的函数,MaxCompute对应为wm_concat。...(b) from t group by a;
MaxCompute:
select a, wm_concat(',', b) as b from t group by a;
|a| b |
|zhang...|1|
|wang | 2,3,2|
|guo | 6 |
场景二.将a进行合并,去重
MySQL:
select a, group_concat(distinct b) from t group...| 6 |
场景五.将b、c进行合并
MySQL:
select a, group_concat(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