Joining 2 tables in SELECT(MYSQL/PHP)

后端 未结 6 1894
离开以前
离开以前 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:06

    SELECT Name, lastName, address, people.conID, postnum, region
    FROM people JOIN countries ON people.conID = countries.conID;
    

提交回复
热议问题