多表关联查询语法分为 内、外连接。
外连接分为左连接(left join 或left outer join)、右连接(right join 或者 right outer join)、和完整外部连接 (full join 或者 full outer join)
左连接:select * from table1 left join table2 on table1.条件列名 = table2.条件列名
右连接:select *from table1 right join table2 on table1. 条件列= table2.条件列
完全外部连接:select *fron table1 join table2 on table1.条件列名 = table2.条件列名
交叉连接(完全):select *from table1 cross join table。
免责声明:本站内容仅用于学习参考,文字信息和图片素材来源于互联网,如内容侵权与违规,请联系我们进行删除,我们将在三个工作日内处理。联系邮箱:chuangshanghai#qq.com(把#换成@)