对我没用 。。
CREATE Function youdumailadd(@SNO as varchar(20),@chang as varchar(50))
returns varchar(5000)
begin
declare @s as varchar(8000)
set @s=''
select @s=@s+','+ltrim(rtrim(mail)) from
(
select mail from iqcyouhai_mail where gongsibie=@SNO and changshang=@chang
)
A
set @s=stuff(@s,1,1,'')
return