0
以前我問過這個問題,我相信已經得到了正確的答案,但我沒有。在ssis中使用派生列連接列
我所試圖實現的是:
Column 1 Columns 2 Column 3 Column 4 Column 5
A B NULL D A|B|D
B C B|C
NULL D NULL NULL D
我用一個派生列:
(DT_STR,50,1252)((Column1 == "" ? "" : Column1 + "|") + (Column2 == "" ? "" : Column2 + "|") + (Column3 == "" ? "" : Column3 + "|") + (Column4 == "" ? "" : Column4))
但我結束了:
Column 1 Columns 2 Column 3 Column 4 Column 5
A NULL NULL D NULL
如果我得到空的總體回答爲NULL
可能重複(HTTP ://stackoverflow.com/questions/20597737/concatenate-columns-using-derived-column-in-ssis) – billinkc