通俗的讲:
内连接(Inner Join)
select *from t_institution iinner join t_teller ton i.inst_no = t.inst_no
where i.inst_no = "5801"
其中inner可以省略。
等价于早期的连接语法
select *from t_institution i, t_teller twhere i.inst_no = t.inst_no
and i.inst_no = "5801"
外连接Outer Jion
左外连接(Left Outer Jion)
select *from t_institution ileft outer join t_teller t
on i.inst_no = t.inst_no
其中outer可以省略。
右外连接(Rigt Outer Jion)
select *from t_institution iright outer join t_teller t
on i.inst_no = t.inst_no
联系客服