【发布时间】:2017-06-28 09:43:37
【问题描述】:
如果我没有在 informatica 中指定默认值,那么它会考虑什么默认值?
我的基本问题是
这两个语句是否相同
解码(abc,'XYZ','XZ','OYE','KYA')
解码(abc,'XYZ','XZ','OYE','KYA',abc)
【问题讨论】:
-
试试吧!例如,使用调试器。
标签: decode informatica informatica-powercenter
如果我没有在 informatica 中指定默认值,那么它会考虑什么默认值?
我的基本问题是
这两个语句是否相同
解码(abc,'XYZ','XZ','OYE','KYA')
解码(abc,'XYZ','XZ','OYE','KYA',abc)
【问题讨论】:
标签: decode informatica informatica-powercenter
Return Value of DECODE
1.First_result if the search finds a matching value.
2.Default value if the search does not find a matching value.
3.NULL if you omit the default argument and the search does not find a matching value.
4. Even if multiple conditions are met, the Data Integration Service returns the first matching result.
5.If the data contains multibyte characters and the DECODE expression compares string data, the return value depends on the code page and data movement mode of the Data Integration Service.
因此,在您的第一条语句中 - 如果没有匹配项,将返回 NULL。
并且在第二句中,如果没有匹配则返回列数据
【讨论】: