select student.sname , score.num from score inner join student on score.student_id = student.sid inner join course on score.course_id = course.cid where course.cname = "物理" and score.num = 100
2条回答 默认 最新
小P聊技术 2021-05-27 17:39关注在表中存在至少一个匹配时,INNER JOIN 关键字返回行
socore分数表的数据关联学生 得分表的学生的ID = 学生表的ID,得分表的课程Id = 课程表的ID
当 课程名称是物理,得分是100
简而言之,就是查询物理得分为100的人的名称以及得分的序号
解决 无用评论 打赏 举报