您的位置:首页 > 数据库

数据库 student sc course

2015-09-10 11:47 288 查看
查询选修了软件工程课程的学生的名字 有两种方法

使用in关键字 select sname from student where sno in (select sno from sc where cno in (select cno from course where cname='软件工程'))

连接查询 select sname from student,sc,course where student.sno=sc.sno and sc.cno=course.cno and cname='软件工程'
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: