#内连接
select * from auth_user u inner join auth_group g on u.id = g.id;

#左连接
select * from auth_user a left join auth_group b on a.id = b.id;

#右连接
select * from auth_user a right join auth_group b on a.id = b.id;

#左链接-内连接
select * from auth_user a left join auth_group b on a.id = b.id where b.id is null;

#右连接-内连接
select * from auth_user a right join auth_group b on a.id = b.id where b.id is null;

#MySQL外连接不让使用full join 或者full outer join

版权声明:本文为mini-test原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/mini-test/p/12021264.html