實現字段以逗號連接,無字符長度限制

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
相關文章
相關標籤/搜索