多行记录栏位合并

DECLARE @r varchar(8000)

SET @r
='' 

select @r
=@r+f1 from 

(

select 'a' f1

union all

select 'b' f2

) a

select @r

导航