0
点赞
收藏
分享

微信扫一扫

力扣数据库 组合两个表

千白莫 2022-03-12 阅读 127

题目:https://leetcode-cn.com/problems/combine-two-tables/

代码:

# Write your MySQL query statement below
select Person.FirstName, Person.LastName, Address.City, Address.State
from Person left join Address
on Person.PersonId = Address.PersonId

注意:

用where的话左连接相当于失效了 这里要用on

举报

相关推荐

0 条评论