sql内外连接
作者:互联网
笛卡尔积 3 × 2
select * from t_user, t_address;
或
select * from t_user inner join t_address;
左外链接
select * from t_user u
left outer join t_address a on u.id = a.user_id;
右外连接
select * from t_user u
right outer join t_address a on u.id = a.user_id;
https://blog.csdn.net/javacoder_juejue/article/details/83037521
标签:join,address,连接,user,sql,outer,内外,id,select 来源: https://www.cnblogs.com/fengbingshui/p/14348951.html