SQL查询课程表
发布时间: 2023-05-31 19:18:58
A. SQL单表查询:查询课程表中课程编号为B20112021的课表所有信息
select * from 课程表
where 课程编号='B20112021'
B. 怎么用SQL语句查询每个学生选修的课程名及其成绩
查询选修了全部课程的学生型歼姓名
:student是学生表course是选如枯课表sc是课程表卜橡冲
selectsname
fromstudent
wherenotexists
(select*
fromcourse
wherenotexists
(select*
fromsc
wheresno=student.sno
andcno=course.cno)
热点内容