Joining 2 tables in SELECT(MYSQL/PHP)

后端 未结 6 1897
离开以前
离开以前 2020-12-21 22:20

I have these two tables. The connecting \"key\" is conID which is included in both tables. So now i would like to write select statement which would give me something like

6条回答
  •  天命终不由人
    2020-12-21 23:04

    This might do the trick:

    SELECT name, lastName, address, people.conID, postNum, region
    FROM people
     JOIN countries ON people.conID = countries.conID;
    

提交回复
热议问题