IFF 声明 - Informatica powerCenter
我见过一个 IFF,我必须将其转换为 Java,但我不确定它的作用。 类似于:
IFF(cod=199, mot <> 'A', null);
我有一个记录表,其中它们将通过过滤器,一列是 cod,另一列是 mot。
IFF在过滤器中,如果cod与199不同,是否因为“else”中存在空而删除该记录?
在另一种语言中它等于:?
if (code == 199) {
return mot != 'A'
} else {
return false??; or return null?
}
I've seen an IFF that I have to translate to Java, but I'm not sure what it does.
Is similar to:
IFF(cod=199, mot <> 'A', null);
I have a table of records, in which they are going to pass a filter, one column is cod and another is mot.
The IFF is in a filter, if a cod is different from 199, is that record deleted because there is a null in the "else"?
In another language would it be equal to:?
if (code == 199) {
return mot != 'A'
} else {
return false??; or return null?
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于 IIF 位于过滤器中,因此 null 条件始终为 false,并将排除数据继续前进并从该点排除。
你可以将这两个条件合二为一 -
if (code == 199 and mot != 'A') then true else false。
因此,等效代码可以是 -
Since IIF is in a filter, null condition is always false and will exclude the data from going ahead and excluded from that point.
And you can combine both condition into one -
if (code == 199 and mot != 'A') then true else false.
So, equivalent code can be -