2017-06-28 1 views

Répondre

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. 

Ainsi, dans votre première déclaration - NULL sera retourné s'il n'y a pas match.

Et dans le deuxième paragraphe, il retourne les données de la colonne s'il n'y a pas de correspondance