select * student sd left join socre sc on sd.id=sc.stuid where level='good'
先执行on再执行 where
如果是 inne join on 和 where 没有区别的
如果是外联接 left outer ,right outer 就会有区别
步骤是 先交叉联接 再执行 on筛选 再把外部行添加过来 再执行 where筛选
select * student sd left join socre sc on sd.id=sc.stuid where level='good'
先执行on再执行 where