weixin_58551350 2021-05-27 17:37 采纳率: 0%
浏览 14

后面的inner join 是做什么的,where是谁的满足条件,整句话翻译成中文的意思是什么

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的人的名称以及得分的序号  

    评论

报告相同问题?