tb是表名select 名字,stuff((select '------其他解决方案--------------------------------------------------------这个改sql语句就行------其他解决方案--------------------------------------------------------tb是表名select 名字,stuff((select '------其他解决方案--------------------------------------------------------'+时间 from tb tb2 where tb2.名字=tb1.名字 for xml path('')),1,1,'')时间 from tb tb1