SQL for 查询将结果作为行集返回
select ''+ ngreason + ' '
from MES_WorkOrders_JobBooking
where ngreason is not null and ngreason <> ''
for xml
for xml path('')
参考:
https://docs.microsoft.com/zh-cn/sql/relational-databases/xml/for-xml-sql-server?view=sql-server-2017