mysql - query three tables

后端 未结 5 1434
庸人自扰
庸人自扰 2021-01-22 19:06

I have a relational database with three tables. The first containts id\'s that relate to the second. The second contains id\'s that relate to the third. The third contains the r

5条回答
  •  遥遥无期
    2021-01-22 19:39

    yes

    SELECT t3.* 
      FROM t1, t2, t3
      WHERE t1.id = t2.id
        AND t2.otherid = t3.id
        AND t1.id = XXXX
    

提交回复
热议问题