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;
最新回答 / 慕田峪9362115
你外層加的關鍵字rownum 相當于又使用了偽劣而不是普通列 肯定又不能用> ?>=符號了啊?select e2.r,empno,ename,salfrom (select rownum r,empno,ename,sal? ? ? ? ? ? from (select empno,ename,sal from emp order by sal desc ) e1? ? ? ? ? ? where rownum<=8) e2where e2.r >4
2018-08-29
select * from (select * from emp order by sal desc)where rownum<=3這樣也是可以的
2018-08-22