SSIS 派生列中的嵌套 IF THEN ELSE 运算符
Nested IF THEN ELSE Operator in SSIS Derived Column
我有一个 excel,我正试图将其加载到我的数据库中的一个 table。 excel 文件有一个名为 'Location Code' 的列。我在我的 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]
我有一个 excel,我正试图将其加载到我的数据库中的一个 table。 excel 文件有一个名为 'Location Code' 的列。我在我的 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]