当前位置:网站首页>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 语句的结果集
边栏推荐
猜你喜欢

双面材质【double sided】的Shader

CRS-5017
![[C language] storage of data in memory -1 plastic](/img/4a/24c1bb4743bd4ae965ed88f333f2fe.jpg)
[C language] storage of data in memory -1 plastic

多级介孔有机金属骨架材料ZIF-8负载乳酸氧化酶(LOD)/四氧化三铁(Fe304)/阿霉素DOX/胰岛素/cas9蛋白/甲硝唑/大黄素甲醚

Analysis of the difficulties in the architecture design of massive chat messages in the live broadcast room

Record the actual record of my question brushing

NFT Insider #61:Animoca Brands 在 340 项投资中持有 15 亿美元的加密资产

Introduction and practice of QT tcp/udp network protocol (I) TCP communication

QT database learning notes (I) basic concepts of database

20n10-asemi medium and small power MOS transistor 20n10
随机推荐
Shader of double sided material
CRS-5017
Question g: candy
Can the soft exam certificate be settled in Shanghai? Many people don't know
In the past 10 years, from zero foundation testing to test architect, he has made himself successful
MD61计划独立需求导入BAPI【按日维度/动态模板/动态字段】
Analysis of the difficulties in the architecture design of massive chat messages in the live broadcast room
浅析直播间海量聊天消息的架构设计难点
Project records
叶酸配体的金属有机骨架材料MOFs负载5-氟尿嘧啶,西达本胺,紫杉醇,阿霉素,柔红霉素,布洛芬,喜树碱,姜黄素,藤黄酸等小分子药物
Large screen - full screen, exit full screen
金属有机框架MOF-Al(DIBA),MOF-Zr(DIBA),MOF-Fe(DIBA)包载姜黄素/羧苄西林/MTX甲氨蝶呤/紫杉醇PTX/阿霉素DOX/顺铂CDDP/CPT喜树碱等药物
Introduction for i-Teams
关于Set集合类你都知道什么?来自《卷Ⅰ》的灵魂提问
Shell learning tutorial (super detailed and complete)
SAP smartforms page feed printing automatic judgment
Nodejs send mail
Implementing stack with queue
JS basic part hand exercises
技术分享| 快对讲,全球对讲