Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ssis 在SSI中使用派生列连接列_Ssis - Fatal编程技术网

Ssis 在SSI中使用派生列连接列

Ssis 在SSI中使用派生列连接列,ssis,Ssis,我以前问过这个问题,我相信我得到了正确的答案,但我没有 我试图实现的是第5栏: 我使用了一个派生列: (DT_STR,50,1252)((Column1 == "" ? "" : Column1 + "|") + (Column2 == "" ? "" : Column2 + "|") + (Column3 == "" ? "" : Column3 + "|") + (Column4 == "" ? "" : Column4)) 但我最后说: Column 1 Columns 2 Colu

我以前问过这个问题,我相信我得到了正确的答案,但我没有

我试图实现的是第5栏:

我使用了一个派生列:

(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
如果我得到空值,则总体答案为空

=== 嗨,尝试使用

ISNULL(Value) ? " " : Value
每列

马里奥试试这个:

(DT_STR,50,1252)((Column1 == "" || isnull(Column1) ? "" : Column1 + "|") + 
                 (Column2 == "" || isnull(Column2) ? "" : Column2 + "|") +   
                 (Column3 == "" || isnull(Column3) ? "" : Column3 + "|") + 
                 (Column4 == "" || isnull(Column4) ? "" : Column4))
可能重复的
(DT_STR,50,1252)((Column1 == "" || isnull(Column1) ? "" : Column1 + "|") + 
                 (Column2 == "" || isnull(Column2) ? "" : Column2 + "|") +   
                 (Column3 == "" || isnull(Column3) ? "" : Column3 + "|") + 
                 (Column4 == "" || isnull(Column4) ? "" : Column4))