当前位置:网站首页>Advanced learning of MySQL -- basics -- multi table query -- self join
Advanced learning of MySQL -- basics -- multi table query -- self join
2022-07-07 00:34:00 【Magic pig 9898】
grammar :
Self connection can be internal connection or external connection
for example
Query employees , And the name of its leader
select a.name , b.name from emp a , emp b where a.managerid = b.id;
in other words , If an employee doesn't have a leader , This employee will not be found out , Isn't that the inner connection
Another example is
Query all employees , And its subordinate leaders , If the employee has no leader , We need to find out
select a.name , b.name from emp a left outer join emp b on a.managerid = b.id;
边栏推荐
- On February 19, 2021ccf award ceremony will be held, "why in Hengdian?"
- Oracle EMCC 13.5 environment in docker every minute
- Leecode brushes questions and records interview questions 01.02 Determine whether it is character rearrangement for each other
- uniapp实现从本地上传头像并显示,同时将头像转化为base64格式存储在mysql数据库中
- The way of intelligent operation and maintenance application, bid farewell to the crisis of enterprise digital transformation
- 陀螺仪的工作原理
- Win10 startup error, press F9 to enter how to repair?
- Testers, how to prepare test data
- Quaternion attitude calculation of madgwick
- 48页数字政府智慧政务一网通办解决方案
猜你喜欢

2022/2/11 summary

Mujoco second order simple pendulum modeling and control

uniapp实现从本地上传头像并显示,同时将头像转化为base64格式存储在mysql数据库中

File and image comparison tool kaleidoscope latest download

Core knowledge of distributed cache

Jenkins' user credentials plug-in installation

37 pages Digital Village revitalization intelligent agriculture Comprehensive Planning and Construction Scheme

37頁數字鄉村振興智慧農業整體規劃建設方案

System activity monitor ISTAT menus 6.61 (1185) Chinese repair

37 page overall planning and construction plan for digital Village revitalization of smart agriculture
随机推荐
On February 19, 2021ccf award ceremony will be held, "why in Hengdian?"
DAY SIX
AI超清修复出黄家驹眼里的光、LeCun大佬《深度学习》课程生还报告、绝美画作只需一行代码、AI最新论文 | ShowMeAI资讯日报 #07.06
MIT 6.824 - Raft学生指南
System activity monitor ISTAT menus 6.61 (1185) Chinese repair
刘永鑫报告|微生物组数据分析与科学传播(晚7点半)
JWT signature does not match locally computed signature. JWT validity cannot be asserted and should
Amazon MemoryDB for Redis 和 Amazon ElastiCache for Redis 的内存优化
Liuyongxin report | microbiome data analysis and science communication (7:30 p.m.)
"Latex" Introduction to latex mathematical formula "suggestions collection"
Article management system based on SSM framework
Are you ready to automate continuous deployment in ci/cd?
GEO数据挖掘(三)使用DAVID数据库进行GO、KEGG富集分析
Mujoco second order simple pendulum modeling and control
JWT signature does not match locally computed signature. JWT validity cannot be asserted and should
[vector retrieval research series] product introduction
GPIO简介
Uniapp uploads and displays avatars locally, and converts avatars into Base64 format and stores them in MySQL database
What can the interactive slide screen demonstration bring to the enterprise exhibition hall
Racher integrates LDAP to realize unified account login