在informatica中IIF和DECODE有什么区别?

时间:2016-08-20 06:09:09

标签: informatica informatica-powercenter

IIF informatica 电力中心的DECODE功能有什么区别。

4 个答案:

答案 0 :(得分:0)

Decode可以在Select语句中使用,而IIF不能在Select语句中使用。

答案 1 :(得分:0)

据我所知,如果我找到第一场比赛并且IIF将完成搜索直至结束,Decode将停止进一步观察

您也可以在select子句

中使用Decode

答案 2 :(得分:0)

首先,DECODE为您提供比嵌套IIF更清晰的代码。此外,在这些情况下效率更高。

答案 3 :(得分:0)

<强>解码

查找列值并根据表达式

生成结果

Syntax:	DECODE (Column_name or ‘Value’, Search1, Result1, Search2, Result2, ….., Default)
 
Argument	              Mandatory/Optional	Description
Column_name or Value	  Mandatory	Value that is to be passed to the function
Search	Mandatory	      Argument that is to be searched 
Result	Mandatory	      Result for the search value
Default	Optional	      Default value in case of search does not 

Example1: DECODE (ID, 1, ‘US
3, ‘Australia’, ‘None’)
Input Data:	ID		Value 
            1	    US
            2	    UK
            3	    Australia
            4	
                    Africa

Output Data:	ID		Value 
                1	    US
                2	    None
                3	    Australia
                4	    None
                None

**

查找列值并根据表达式

生成结果
相关问题