How to select data from two tables using a single query

前端 未结 5 864
北海茫月
北海茫月 2021-01-29 02:02

I\'ve been trying to get my head around how to use a single query to select data from two of my tables. If anybody can suggest a better way than a single query, I\'m all ears! P

5条回答
  •  生来不讨喜
    2021-01-29 02:38

    SELECT * FROM member
    LEFT JOIN networking
    ON member.networkingID=networking.ID
    WHERE member.ID=2
    

提交回复
热议问题