参考以下
SQL> select * from test;
ID MC
---------- -------------
1 11111
1 22222
2 11111
2 22222...SQL> select id,ltrim(max(sys_connect_by_path(mc,',')),',') row2col
from (select id,mc,
id+(row_number...---------------------------------------------
1 11111,22222
2 11111,22222
3 11111,22222,33333
SQL