select s_id,group_concat(c_id) 课程 from sc
group by s_id having 课程
=(select group_concat(c_id) from sc where s_id=\'01\' group by s_id )
and s_id<>01;
其实这个不是特别理解。。。感觉数据库的逻辑性好强啊,经常绕不过来
555后面复杂的好难消化
|
楼主: dorist
|
715
1
[CDA1班] 【学习笔记】select s_id,group_concat(c_id) 课程 from sc group by s_id h ... |
|
本科生 83%
-
|
| ||
|
|
扫码京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


