stuff for xml path


SumOrg=stuff((select '/'+User_Org from V_RubricInfoRefer t where t.RubricID=V_RubricInfoRefer.RubricID for xml path('')), 1, 1, '')

原文地址:https://www.cnblogs.com/dragon-L/p/4447725.html