inner join between 3 tables

后端 未结 3 1660
悲&欢浪女
悲&欢浪女 2021-01-29 11:53

i have these table in database:

country:

id      country
------------------
1       USA
2       Brazil

and segment table:

id           


        
3条回答
  •  天命终不由人
    2021-01-29 12:35

    SELECT * 
    FROM third_table t
    INNER JOIN country c ON t.country_id = c.country_id
    INNER JOIN segment s ON t.segment_id = s.segment_id
    

提交回复
热议问题