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