Joining three tables using MySQL

前端 未结 9 2381
隐瞒了意图╮
隐瞒了意图╮ 2020-11-22 10:40

I have three tables named

**Student Table**
-------------
id    name
-------------
1     ali
2     ahmed
3     john
4     king

**Course Table**
------------         


        
9条回答
  •  攒了一身酷
    2020-11-22 11:10

    SELECT *
    FROM user u
    JOIN user_clockits uc ON u.user_id=uc.user_id
    JOIN clockits cl ON cl.clockits_id=uc.clockits_id
    WHERE user_id = 158
    

提交回复
热议问题