select t.ci_id, wm_concat(stu_name)
from pm_ci t ,pm_stu d
where instr(t.stu_ids,d.stu_id)>0
group by t.ci_id
from pm_ci t ,pm_stu d
where instr(t.stu_ids,d.stu_id)>0
group by t.ci_id
2017-12-26
--查詢語句
select c.CI_ID,WM_CONCAT(s.STU_NAME) STU_NAME
from pm_ci c,PM_STU s
where instr(c.STU_IDS,s.STU_ID)>0
GROUP BY c.CI_ID
select c.CI_ID,WM_CONCAT(s.STU_NAME) STU_NAME
from pm_ci c,PM_STU s
where instr(c.STU_IDS,s.STU_ID)>0
GROUP BY c.CI_ID
2017-12-14
select temp.ciId, wm_concat(temp.stuName)
from (select pc.ci_id ciId,
instr(pc.stu_ids, ps.stu_id),
ps.stu_name stuName
from pm_ci pc, pm_stu ps
where instr(pc.stu_ids, ps.stu_id)<0
order by 1,2) temp group by .
from (select pc.ci_id ciId,
instr(pc.stu_ids, ps.stu_id),
ps.stu_name stuName
from pm_ci pc, pm_stu ps
where instr(pc.stu_ids, ps.stu_id)<0
order by 1,2) temp group by .
2017-12-10
select c.ci_id 選課表序號,wm_concat(s.stu_name) 學(xué)生姓名
from pm_ci c, pm_stu s
where instr(c.stu_ids,s.stu_id) >0
group by c.ci_id
from pm_ci c, pm_stu s
where instr(c.stu_ids,s.stu_id) >0
group by c.ci_id
2017-11-27