SSIS派生列中嵌套的IF THEN ELSE运算符



我有一个excel,我正试图将它加载到数据库中的表中。excel文件有一个名为"位置代码"的列。我正在使用SSIS包中的派生列来完全填充条件

If 'Location Code' = "NULL" OR If 'Location Code' ISNULL OR If 'Location Code' = "" then 'Location Code' else "5"+""+'Location Code' //(concatenating '5' with the Location Code).

如何在我的派生专栏中实现上述目标?

我终于找到了问题的答案。下面,我提供了确切的语法:

(DT_WSTR,50)[Location Code] == "NULL" || ISNULL([Location Code]) || (DT_WSTR,50)[Location Code] == "" ? (DT_WSTR,50)[Location Code] : (DT_WSTR,10)5 + (DT_WSTR,50)[Location Code]

最新更新