MySQL Understanding Basic Joins

前端 未结 6 1740
借酒劲吻你
借酒劲吻你 2021-01-06 20:57

I am struggling to understand basic MySQL joins.

Basically I\'ve got 2 tables one with a customer first name and address id in it and another with the actual address.

6条回答
  •  北海茫月
    2021-01-06 21:37

    SELECT  a.name, b.address
    FROM    Customer a INNER JOIN AddressList b on a.addressID = b.addressID
    

    To learn more about joins, see the article below,

    • Visual Representation of SQL Joins

提交回复
热议问题