2017-06-28 5 views
0

私がinformaticaでデフォルトの値を指定しないと、デフォルトではどうなるでしょうか?私はinformaticaのデコードでデフォルトを指定しない場合はどうでしょうか?

私の基本的な質問には」

が同じ両方のステートメントの作業

DECODE(ABC、 'XYZ'、 'XZ'、 'OYE'、 'KYA')

DECODE(ABCを実行していますXYZ」、 'XZ'、 'OYE'、 'KYA'、ABC)が

+0

お試しください!たとえば、デバッガを使用します。 – Maciejg

答えて

1
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が返されます。

そして、2つ目のステートメントでは、一致しない場合は列データを返します

関連する問題