ORACLE数据库列转行(实现字段合并)
SELECT T.SCATEG,TO_CHAR(wm_concat(SNAME)) FROM STAR T GROUP BY T.SCATEG;
DB2数据库列转行(实现字段合并)
SELECT T.SCATEG,LISTAGG(T.SNAME,’,’) FROM STAR T GROUP BY T.SCATEG;
ORACLE / DB2数据库列转行(实现字段合并)
最新推荐文章于 2024-10-04 08:01:29 发布
ORACLE数据库列转行(实现字段合并)
SELECT T.SCATEG,TO_CHAR(wm_concat(SNAME)) FROM STAR T GROUP BY T.SCATEG;
DB2数据库列转行(实现字段合并)
SELECT T.SCATEG,LISTAGG(T.SNAME,’,’) FROM STAR T GROUP BY T.SCATEG;