oracle与mysql多行合并

1.oracle多行合并一行
效果:
oracle与mysql多行合并

oracle与mysql多行合并
SELECT a, WMSYS.WM_CONCAT(b) AS name FROM aa  GROUP BY a;

2.mysql多行合并一行

oracle与mysql多行合并

oracle与mysql多行合并
SELECT type, GROUP_CONCAT(name SEPARATOR ',') AS name FROM tt WHERE type=1 GROUP BY type;


技术交流群:312740759

你可能感兴趣的:(oracle,mysql,行转列,多行合并)