时间:2021-07-01 10:21:17 帮助过:11人阅读
1 SELECT A, LTRIM(MAX(SYS_CONNECT_BY_PATH(B, ‘ ‘)), ‘,‘) B 2 FROM (SELECT B, A, ROW_NUMBER() OVER(PARTITION BY A ORDER BY B DESC) RN 3 FROM TEST) 4 START WITH RN = 1 5 CONNECT BY RN - 1 = PRIOR RN 6 AND A = PRIOR A 7 GROUP BY A;
Oracle中SYS_CONNECT_BY_PATH函数的妙用 ;
标签:blog font div insert oracle oracl pos ber post