When SET CONCAT_NULL_YIELDS_NULL is ON, concatenating a null value with a string yields a NULL result.
CONCAT_NULL_YIELDS_NULL is OFF, concatenating a null value with a string yields the string itself .
SET CONCAT_NULL_YIELDS_NULL OFF
Select ' ' +'Ajay'
Result :Ajay
SET CONCAT_NULL_YIELDS_NULL ON
Select ' ' +'Ajay'
Result :NULL
No comments:
Post a Comment