Informatica-将1列的所有行连接为一个值
问题描述:
我希望在Informatica中将所有值从1列转换为一个值.
I am looking to convert all values from 1 columns to one single value in Informatica.
Col1
Row1 A
Row2 B
Row3 C
Row4 D
收件人
Col 1
Row1 A,B,C,D
我有一个表达式可用的输入. 谢谢!
I have the the input available from an expression. Thank you!
答
应该可以在Expression转换中使用变量端口来做到这一点.
It should be possible to do it using a variable port in Expression transformation.
例如
in_Col1
v_Row1 := iif(isnull(v_Row1), in_Col1, v_Row1||','||in_Col1)
o_Row1 := v_Row1
在进行Expression转换之后,使用Aggregator转换仅传递将具有串联值的最后一行.
After the Expression transformation, use an Aggregator transformation to pass only the last row which will have the concatenated value.
我还没有测试过.让我知道这是否有效.
I have not tested it. Let me know if this works.