select dept_no, group_concat(emp_no) as employees
from dept_emp
group by dept_no

这里需要用到group_concat 函数 具体的教程在:https://www.w3cschool.cn/mysql/5nab1ptx.html