#取名

sql多行合并成一行用逗号隔开,多表联合查询中子查询取名可重复

简单版的SELECTa.CreateBy,Name=stuff((select','+NameFROMSG_ClientWHERECreateBy=a.CreateByforxmlpath('')),1,1,'')FROMSG_Clientagroupbya.CreateBy //连表查询SELECTa.Co...