sqlserver 把结果集拼成一行字符串

declare @fulltext nvarchar(4000)
set @fulltext=''
select @fulltext=@fulltext+treestruttext+'/' from xzstruct 
where layerType=5 and isdel is null and structName like '佛山%'

猜你喜欢

转载自kingschan.iteye.com/blog/1604728
今日推荐