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