select count(*)ct,code
trim(both ',' from sys.stragg(distinct to_char(T.FID) || nvl2(T.FID, ',',''))) d
from CP_ORDERLIFEHELP T group by T.FWORKERIDselect
結果: ct dim
1 23 2 33,55 5 666,777,333,444,23423