日期:2014-05-16 浏览次数:20841 次
select a.DiskName,group_concat(b.TypeName) from DiskInfo a,Typeinfo b where find_in_set(b.TypeID,a.TypeID) group by a.DiskName
------解决方案--------------------
select a.DiskName,group_concat(b.TypeName)
from DiskInfo a,Typeinfo b
where find_in_set(b.TypeID,replace(a.TypeID,';',','))
group by a.DiskName