美文网首页
sql-关联表查询 2019-06-24

sql-关联表查询 2019-06-24

作者: stayhungryQiu | 来源:发表于2019-06-25 18:50 被阅读0次

    Liebe_you 推荐于2017-09-22

    比如有三张表,student,teacher , project :

    1.第一种方法:select * from student,teacher,project where student.id=teacher.sid and student.id=project.sid;

     2.第二种:select * from student inner join teacher on student.id=teacher.sid inner join project on student.id=project.sid;

    相关文章

      网友评论

          本文标题:sql-关联表查询 2019-06-24

          本文链接:https://www.haomeiwen.com/subject/tfqaqctx.html