为了账号安全,请及时绑定邮箱和手机立即绑定

结果是出来了,但不知是否有BUG,总感觉哪里有问题

col 课程号 format a5
col 选课名单 format a20
select c.ci_id 课程号,wm_concat(s.stu_name) 选课名单
from pm_ci c,pm_stu s
where instr(c.stu_ids,s.stu_id)>0
group by c.ci_id;

踏破铁鞋无觅处,蓦然回首,答案就在灯火阑珊处

正在回答

1 回答

select p.ci_id,max(stu_name) as STU_NAME
from (select c.ci_id,wm_concat(s.stu_name) 
over(partition BY c.stu_ids order by s.stu_id) as stu_name
from pm_ci c,pm_stu s
where instr(c.stu_ids,s.stu_id) > 0) p 
group by p.ci_id

查询出来后有排序效果的..

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

结果是出来了,但不知是否有BUG,总感觉哪里有问题

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号