select 字段一,
substr(max(sys_connect_by_path( 字段二,',')),2) 字段二,
from ( select
字段一,字段二, row_number() over(order by 字段二) rn
from 表A )
start with rn=1
connect by rn-1=prior rn
group by 字段一
9I
select 字段一,wmsys.wm_concat(字段二) from (select distinct 字段一,字段二 from A) group by 字段一;
10G
类似聚合查询
最新推荐文章于 2024-04-28 07:28:12 发布