关联查询

关联查询
自然连接:natural join 两张表的关键字段完全一致
内连接: inner join on
select * from t1 inner join t2 on t1.字段 = t2.字段
左连接 left join on
全连接 full outer join
等值连接
select * from t1,t2 where t1.字段 =t2.字段
自连接

原文地址:https://www.cnblogs.com/longmo666/p/13557132.html