select t2.ci_id, wm_concat(t1.stu_name)
from pm_stu t1, pn_ci t2
where instr(t2.stu_ids, t1.stu_id) > 0
group by t2.ci_id
看看提示还是挺简单的
from pm_stu t1, pn_ci t2
where instr(t2.stu_ids, t1.stu_id) > 0
group by t2.ci_id
看看提示还是挺简单的
select cid,wm_concat(name) from ci,pm where instr(ci.sid,pm.sid)>0 group by cid;