码迷,mamicode.com
首页 > 其他好文 > 详细

Combine Two Tables[leetcode]

时间:2015-09-16 10:58:29      阅读:199      评论:0      收藏:0      [点我收藏+]

标签:

# Write your MySQL query statement below
#select a.FirstName , a.LastName , b.City , b.State from Person as a , Address as b where a.PersonId = b.AddressId ;
select a.FirstName , a.LastName , b.City , b.State from Person as a left join Address as b on a.PersonId = b.PersonId ;


https://leetcode.com/discuss/33259/difference-between-inner-join-and-left-join

Combine Two Tables[leetcode]

标签:

原文地址:http://my.oschina.net/LosersAFC/blog/506653

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!