这是我的查询
select deptno,ename from emp_task;
输出
我想要像这样的输出
eno ename
20 TRINATH/RABHA
8 SAIKIRAN/KISHORE
10 KUMAR/VICKY/DAFNI
答案 0 :(得分:0)
select deptno,
listagg(ename,'/') within group (order by ename) as names
from temp_task
group by deptno
order by deptno;
答案 1 :(得分:0)
这个SQL查询应该有效 -
select deptno,wm_concat(ename)
from emp_task
group by deptno
order by deptno