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
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