2012-03-07 36 views

回答

0

它只是作爲建議!非常感謝!

WITH temp as (
SELECT 'A' as master , 1 Col from dual 
UNION SELECT 'A' , 3 from dual 
UNION SELECT 'B' , 1 from dual 
UNION SELECT 'B' , 2 from dual 
UNION SELECT 'C' , 1 from dual) 
SELECT 
    master, 
    wm_concat(Col) over (partition by master) 
FROM 
    temp