笨笨乐园

多行记录栏位合并

DECLARE @r varchar(8000)

SET @r
='' 

select @r
=@r+f1 from 

(

select 'a' f1

union all

select 'b' f2

) a

select @r

posted on 2006-08-30 08:23  Angus  阅读(195)  评论(0编辑  收藏  举报

导航