Oracle:在分析函数中转换wm_concat

时间:2012-03-07 13:38:43

标签: oracle

我读到使用聚合函数作为分析函数link应该非常简单。我想在Oracle 10g中使用wm_concat作为分析函数。

1 个答案:

答案 0 :(得分: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