MySQL Understanding Basic Joins

前端 未结 6 1842
借酒劲吻你
借酒劲吻你 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:42

    It would be:

    SELECT firstName, address FROM Address As A 
    INNER JOIN Customer as C ON C.addressId=A.addressId
    

    Visual Representation of JOINS

提交回复
热议问题