|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
variable
I have a param @MessageBody varchar(8000).
I am assigning some values to the select @MessageBody=select.... It working fine until I the results is only 1 row, however when it is more then one it is taking only top 1 row. What should I do in order to get all rows? |
|
#2
|
|||
|
|||
|
Could you Pl. Explain it further.What exactly are you trying to do.
|
|
#3
|
|||
|
|||
|
Code:
declare @result varchar(8000) select @result = coalesce(@result + ',','') + c from t select @result |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > variable |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|