Informatica-将1列的所有行连接为一个值 [英] Informatica - Concatenate all rows of 1 column to a single value

查看:94
本文介绍了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.

这篇关于Informatica-将1列的所有行连接为一个值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆