![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I have two variables, and when I'm concatinating both of them, if any of them is not having value the result string becomes empty. I want to concatinate variables, like it happens in Visual basic. even if some of the variables are not having value it still return the result. problem description. DECLARE @A VARCHAR(200) DECLARE @B VARCHAR(200) DECLARE @C VARCHAR(200) SET @A='AAA' --NO SET FOR @B (SET @B='BBB') SET @C=@A+@B PRINT @C ... I WANT @C SHOULD RETURN ME AAA BUT ITS GIVING ME BLANK. |
| THANX IN ADV. T.S.NEGI (MIND) |
#2
| |||
| |||
|
|
I have two variables, and when I'm concatinating both of them, if any of them is not having value the result string becomes empty. I want to concatinate variables, like it happens in Visual basic. even if some of the variables are not having value it still return the result. problem description. DECLARE @A VARCHAR(200) DECLARE @B VARCHAR(200) DECLARE @C VARCHAR(200) SET @A='AAA' --NO SET FOR @B (SET @B='BBB') SET @C=@A+@B PRINT @C ... I WANT @C SHOULD RETURN ME AAA BUT ITS GIVING ME BLANK. THANX IN ADV. T.S.NEGI (MIND) |
![]() |
| Thread Tools | |
| Display Modes | |
| |