当前位置:网站首页>SQL | 外连接
SQL | 外连接
2022-06-11 01:23:00 【孤天野鹤】
外连接 (OUTER JOIN)分为三种
1. 左外连接 (LEFT OUTER JOIN 或 LEFT JOIN):左表的记录将会全部表示出来,而右表只会显示符合搜索条件的记录,右表记录不足的地方均为NULL
2. 右外连接 (RIGHT OUTER JOIN 或 RIGHT JOIN):与左(外)连接相反,右(外)连接,右表的记录将会全部表示出来,而左表只会显示符合搜索条件的记录,左表记录不足的地方均为NULL
3. 全外连接 (FULL OUTER JOIN 或 FULL JOIN):左表和右表都不做限制,所有的记录都显示,两表不足的地方用null 填充
MySQL中不支持全外连接,可以使用 UNION 来合并两个或多个 SELECT 语句的结果集
边栏推荐
- Learning C language from scratch day 040
- Go develop web
- Battery control of QT widget (qpainter)
- Bingbing learning notes: find the greatest common divisor and the least common multiple. Complex version reverse string
- Number of different paths
- Md61 plan independent demand import Bapi [by daily dimension / dynamic template / dynamic field]
- JS basic part hand exercises
- English subtitle video translated into Chinese subtitles
- Our understanding of the industrial Internet may be more out of the existing logic
- ME11/ME12采购信息记录及条件记录创建及更新BAPI:ME_INFORECORD_MAINTAIN_MULTI
猜你喜欢

Asemi FET 12n65 parameters, 12n65 specifications, 12n65 features

Fb02 edit coding block field

Oracle收集统计信息

The interviewer of Tencent said that who knows the internal module index principle and performance optimization idea of MySQL architecture?

ABAP CDS实现多行字段内容拼接

JS Part 5

【并行与分布式系统】Cache学习

10 years of domestic milk powder counter attack: post-90s nannies and dads help new domestic products counter attack foreign brands

Nodejs send mail

QT database learning notes (I) basic concepts of database
随机推荐
软件测试面试复盘:技术面没有难倒我,hr面却是一把挂
2022 high altitude installation, maintenance and removal of simulated examination platform of theoretical question bank
Bingbing learning notes: find the greatest common divisor and the least common multiple. Complex version reverse string
Ortele has obtained three rounds of financing nine months after its establishment, and hard discount stores have found new ways to grow?
金属有机骨架材料Fe-MIL-53,Mg-MOF-74,Ti-KUMOF-1,Fe-MIL-100,Fe-MIL-101)负载异氟醚/甲氨蝶呤/阿霉素(DOX)/紫杉醇/布洛芬/喜树碱
What should be paid attention to in PMP registration? Special reminder
Merge sort ()
Complete tutorial on obtaining voltage from QGC ground station (APM voltage cannot be obtained from QGC)
Analysis of the difficulties in the architecture design of massive chat messages in the live broadcast room
[penetration test tool bee] how to install and use the XSS penetration test tool bee?
14:00面试,14:08就出来了 ,问的实在是太...
Question g: candy
889. 根据前序和后序遍历构造二叉树
3P5 Industrial Engineering Lecture 1-2: Method of Study
20n10-asemi medium and small power MOS transistor 20n10
【无标题】
Day code 300 lines learning notes day 22
Large screen - full screen, exit full screen
从测试零基础到测试架构师,这10年,他是这样让自己成才的
InfoQ 极客传媒 15 周年庆征文|容器运行时技术深度剖析