sql server 合并某一字段的值
SELECT meterid , stuff((select ','+alarm from t_xhs_alarm_hie_copy where c.meterid=meterid for xml path('')),1,1,'') as alarm from t_xhs_alarm_hie_copy c group by c.meterid t_xhs_alarm_hi...
原创
2018-08-04 08:14:05 ·
2193 阅读 ·
0 评论