Fork me on GitHub

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

posted @ 2018-11-20 11:17  都一样*  阅读(379)  评论(0编辑  收藏  举报