问题
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
To
Col 1
Row1 A,B,C,D
I have the the input available from an expression. Thank you!
回答1:
It should be possible to do it using a variable port in Expression transformation.
E.g.
in_Col1
v_Row1 := iif(isnull(v_Row1), in_Col1, v_Row1||','||in_Col1)
o_Row1 := v_Row1
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.
来源:https://stackoverflow.com/questions/51274195/informatica-concatenate-all-rows-of-1-column-to-a-single-value