mysql实现:
select A,GROUP_CONCAT(B)
from table
group by A
;
hive实现转换:
SELECT A,concat_ws(’,’, collect_set(B))
FROM table
GROUP BY B;
mysql实现:
select A,GROUP_CONCAT(B)
from table
group by A
;
hive实现转换:
SELECT A,concat_ws(’,’, collect_set(B))
FROM table
GROUP BY B;