請問老師我的程序寫的對嗎?
select a.ci_id,wm_concat(b.stu_name) group by a.ci_id from pm_ci a ,pm_stu b where instr(a.stu_ids, b.stu_id)=b.stu_id; 請問老師對不對啊?什么時候公布答案?
select a.ci_id,wm_concat(b.stu_name) group by a.ci_id from pm_ci a ,pm_stu b where instr(a.stu_ids, b.stu_id)=b.stu_id; 請問老師對不對啊?什么時候公布答案?
2016-01-07
舉報
2016-02-22
最后一道練習題大概是這樣,但是wm_concat沒有排序 這里我也沒有處理到
2016-02-22
select c.ci_id,
wm_concat(case when instr(c.stu_ids,p.stu_id)>0 then p.stu_name end) stu_name?
from cm_ci c, pm_siu p?
where instr(c.stu_ids,p.stu_id)>0?
group by c.ci_id
2016-01-07
group by放到語句后面。