实现字段以逗号连接,无字符长度限制

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
相关文章
相关标签/搜索