SELECT a.aid AS '序号', a.`主管领导`, GROUP_CONCAT(b.`姓名`) AS `主管领导姓名` FROM a LEFT JOIN b on FIND_IN_SET(b.id , a.`主管领导`) GROUP BY a.aid ORDER BY a.aid ASC