【发布时间】:2018-03-06 04:18:10
【问题描述】:
我有以下运行良好的代码:
STUFF( (
select
char(13)+'Item '+i.item+' : '--+char(13) +i.item_descr
from @itemlines i
where i.customer=main.customer
FOR XML PATH(''), TYPE
).value('.','varchar(max)')
,1,1, '')
.value() 是什么?类似于...选择方法?它有什么作用?任何参考链接也将不胜感激!
【问题讨论】:
标签: sql string tsql aggregate-functions string-concatenation