当前位置:网站首页>Summary of MySQL key challenges (2)
Summary of MySQL key challenges (2)
2022-07-02 04:51:00 【Go and be safe~】
Catalog
1、 according to dept_no To summarize
1、 according to dept_no To summarize
according to dept_no To summarize , Belonging to the same department emp_no Connect by comma , The results show that dept_no And the connected results employees
CREATE TABLE `dept_emp` (
`emp_no` int(11) NOT NULL,
`dept_no` char(4) NOT NULL,
`from_date` date NOT NULL,
`to_date` date NOT NULL,
PRIMARY KEY (`emp_no`,`dept_no`));
Output format
dept_no | employees |
---|---|
d001 | 10001,10002 |
d002 | 10006 |
d003 | 10005 |
d004 | 10003,10004 |
d00 |
边栏推荐
- 培养中小学生对教育机器人的热爱之心
- LM09丨费雪逆变换反转网格策略
- How to configure PostgreSQL 12.9 to allow remote connections
- Social media search engine optimization and its importance
- Record the bug of unity 2020.3.31f1 once
- 二叉樹解題(二)
- CorelDRAW graphics suite2022 free graphic design software
- VMware installation win10 reports an error: operating system not found
- C# 图片显示占用问题
- 奠定少儿编程成为基础学科的原理
猜你喜欢
Leetcode merge sort linked list
数学问题(数论)试除法做质数的判断、分解质因数,筛质数
LM09丨费雪逆变换反转网格策略
Knowledge arrangement about steam Education
Cultivate primary and secondary school students' love for educational robots
Learn BeanShell before you dare to say you know JMeter
農業生態領域智能機器人的應用
Thinkphp內核工單系統源碼商業開源版 多用戶+多客服+短信+郵件通知
Unity particle Foundation
Interview question: do you know the difference between deep copy and shallow copy? What is a reference copy?
随机推荐
数学问题(数论)试除法做质数的判断、分解质因数,筛质数
[improvement class] st table to solve the interval maximum value problem [2]
6.30 year end summary, end of student age
unable to execute xxx. SH: operation not permitted
TypeScript函数详解
Leetcode merge sort linked list
Win10 disk management compressed volume cannot be started
Pit encountered in win11 pytorch GPU installation
Cannot activate CONDA virtual environment in vscode
CorelDRAW Graphics Suite2022免费图形设计软件
C language practice - number guessing game
DJB Hash
Markdown编辑语法
二叉树解题(二)
Several methods of capturing packets under CS framework
Idea autoguide package and autodelete package Settings
洛谷入门3【循环结构】题单题解
C# 图片显示占用问题
C language practice - binary search (half search)
Deeply understand the concepts of synchronization and asynchrony, blocking and non blocking, parallel and serial