当前位置:网站首页>Difference between left join on and join on
Difference between left join on and join on
2022-06-25 02:49:00 【Spring wind neon clothes】
Reference resources :https://blog.csdn.net/lovebosom/article/details/51035894
Join Equate to inner join : Indicates that both tables must exist
left join Indicates that the table on the left is the benchmark , Whether or not the table on your right shows
right join and left join Just the opposite
full outer join It means that as long as there is something in any of the two tables, it will be displayed
The same thing : Through the association table , Use where Find the desired data
1、 When two tables , When the associated data value has no value in a table , At this time left join When the table on the left has a value , You can also query the value , And the data in the right table are all represented by null Express !
eg:
left join…on…
You can see left join…on…, This is the case when the data associated with the table on the right does not exist , yes Can't Treat the associated data as useless data ;
join…on…

You can see join…on…, This is the case when the data associated with the table on the right does not exist , Meeting Treat the associated data as useless data , Such data will not be queried ;
2、 When using conditions in association ,left join…on… All the information in the main table that does not meet the conditions will be found , But schedule ( Association table ) All fields will use null Express , So sometimes , When you want to query the main table that does not meet the conditions , You can add where Schedule id=null Find out ! and join…on… The unsatisfied data will be directly ignored , Will not be found out
eg:
left join…on…
join…on…

边栏推荐
猜你喜欢

Intranet learning notes (5)

After reciting the eight part essay, I won the hemp in June

Distributed transaction solutions and code implementation

AI clothing generation helps you complete the last step of clothing design

Use of hashcat

电脑端微信用户图片DAT格式解码为图片(TK版)

AI服装生成,帮你完成服装设计的最后一步

Unity存档系统——Json格式的文件

【STL源码剖析】配置器(待补充)

保险也能拼购?个人可以凑够人数组团购买医疗保险的4大风险
随机推荐
Unity archive system - file in JSON format
Processon producer process (customized)
李宏毅《机器学习》丨6. Convolutional Neural Network(卷积神经网络)
[i.mx6ul] u-boot migration (VI) network driver modification lan8720a
Post competition summary of kaggle patent matching competition
psql 列转行
Redis
jwt
F - Spices(线性基)
UnityShader入门精要——PBS基于物理的渲染
Refresh mechanism of vie
PE file infrastructure sorting
Uncaught Error: [About] is not a <Route> component. All component children of <Routes> must be a <Ro
Charles packet capturing tool
数组-一口气冲完快慢指针
Practice and Thinking on process memory
Use of hashcat
qt打包exe文件,解决“无法定位程序输入点_ZdaPvj于动态链接库Qt5Cored.dll”
Network planning | [four network layers] knowledge points and examples
ida中交叉引用的解析