当前位置:网站首页>Inner join and outer join of MySQL tables
Inner join and outer join of MySQL tables
2022-06-30 12:20:00 【Xiao Ni-_-】
List of articles
Internal connection
Internal connection is actually the use of where Clause to filter the Cartesian product formed by the two tables , The queries we learned earlier are inner joins , It is also the most used connection query in the development process .
grammar :
select Field from surface 1 inner join surface 2 on Connection condition and Other conditions ;
Case study : Show SMITH Your name and department name
- It was written in the original way

- Standard inner join writing

External connection
The outer connection is divided into left outer connection and right outer connection
The left outer join
If the union query , The table on the left shows that it is a left outer join .
grammar :
select Field name from Table name 1 left join Table name 2 on Connection condition
example :
Build table

Check the grades of all the students , If the student has no grades , Also display the student's personal information

Right connection
If the union query , The table on the right shows that we call it right outer join .
grammar :
select Field from Table name 1 right join Table name 2 on Connection condition ;
example
Yes stu Table and exam Table union query , Show all your grades , Even if there are no students corresponding to this grade , Show it, too

边栏推荐
- R language ggplot2 visual Facet: gganimate package is based on Transition_ The time function creates a dynamic scatter graph animation (GIF) and uses the labs function to add a dynamic time title to t
- 使用Power Designer工具构建数据库模型
- 【BUG解决】fiftyone报AttributeError: module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipeline‘错误解决方法
- Building of Hisilicon 3559 universal platform: obtaining the modified code of data frame
- [cf] 803 div2 B. Rising Sand
- 并行接口8255A
- redis在项目中的使用
- A Generic Deep-Learning-Based Approach for Automated Surface Inspection-論文閱讀筆記
- [bug solution] fiftyone reports attributeerror: module 'CV2' has no attribute 'GAPI_ wip_ gst_ Gstreamerpipeline 'error resolution
- 90. (cesium chapter) cesium high level listening events
猜你喜欢

治数如治水,数据治理和数据创新难在哪?

edusoho企培版纯内网部署教程(解决播放器,上传,后台卡顿问题)

浏览器播放rtsp视频,基于nodeJs

海思3559开发常识储备:相关名词全解

A High-Precision Positioning Approach for Catenary Support Components With Multiscale Difference阅读笔记

Beego development blog system learning (II)
![移除无效的括号[用数组模拟栈]](/img/df/0a2ae5ae40adb833d52b2dddea291b.png)
移除无效的括号[用数组模拟栈]

3D视觉检测在生产流水的应用有哪些

Hannaiping of Qilin software: the construction of Digital China needs its own open source root community

Understanding and learning of MySQL indexing and optimization
随机推荐
Another miserable day by kotlin grammar
Achieve secure data sharing among multiple parties and solve the problem of asymmetric information in Inclusive Finance
8253计数器介绍
How to detect 3D line spectral confocal sensors in semiconductors
A review of quantum neural networks 2022 for generating learning tasks
Use of polarplot function in MATLAB
拆分电商系统为微服务
1254. 统计封闭岛屿的数目
Map collection
The website with id 0 that was requested wasn‘t found. Verify the website and try again
Shutter 007 input field from zero
1020. number of enclaves
【云原生 | Kubernetes篇】深入了解Deployment(八)
1175. 质数排列 : 乘法原理运用题
解决服务器重装无法通过ssh连接的问题
SuperMap iDesktop 常见倾斜数据处理全流程解析
A high precision positioning approach for category support components with multiscale difference reading notes
Building of Hisilicon 3559 universal platform: obtaining the modified code of data frame
R language ggplot2 visual Facet: gganimate package is based on Transition_ The time function creates a dynamic scatter graph animation (GIF) and uses the labs function to add a dynamic time title to t
90.(cesium篇)cesium高度监听事件