如何将查询结果连接成一个字符串
select   A   from   TableA   
 我想把查得的结果连接成一个字符串,不用游标能实现吗?   
 我这样试过,不行: 
 declare   @Str   varchar(500) 
 select   @Str   =   @Str   +   A   from   TableA   
 结果@Str是NULL   
 请问有什么快捷方式吗?
------解决方案--------------------declare @Str varchar(500) 
 set @str= ' ' 
 select @Str = @Str + A from TableA
------解决方案--------------------/** 
 create table tableA 
 ( 
 A char(100) 
 )   
 insert into tableA 
 select 123 
 union all 
 select 456 
 union all 
 select 678 
 union all 
 select 901 
 **/   
 declare @Str varchar(500) 
 set @str= ' ' 
 select @Str = rtrim(@Str) + A from TableA   
 select @str