select ''+ ngreason + ' 'from MES_WorkOrders_JobBookingwhere ngreason is not null and ngreason <> ''
for xmlfor xml path('')
参考:
https://docs.microsoft.com/zh-cn/sql/relational-databases/xml/for-xml-sql-server?view=sql-server-2017