SQL Server之XML PATH()

DECLARE @MedicalInstitutionID NVARCHAR(100)='SYS20130228000000012';
SELECT  ',' + MedicineTypeID
FROM    Dic_Res_StoreToType b
WHERE   b.MedicalInstitutionID = @MedicalInstitutionID
FOR     XML PATH('')

posted @ 2017-09-20 14:13  轴轴  阅读(228)  评论(0编辑  收藏  举报