标签:cat style info span png concat class from pat
/*sqlserver*/ select Id,AId,(SELECT IMEI+‘,‘ FROM Device as s WHERE s.Id=c.Id For XML Path(‘‘)) AS IMEI from Device as c /*mysql*/ select AId,(SELECT group_concat(IMEI) FROM Device as s WHERE s.AId=c.AId ) AS IMEI from AccountSettings as c
sql for xml path 和group_concat
标签:cat style info span png concat class from pat
原文地址:https://www.cnblogs.com/chongyao/p/10868577.html