ITeye博客

wm_concat 使用

beee · 2013-12-18 19:37 · sql · 数据库 · Markdown

经常用的,自己mark一下,有更好的处理办法希望推荐给我

select tt.c_fundcode ,
       wm_concat (  tt.c_profitclass||':'||rtrim(to_char(tt.f_profit*100,'fm99999999999990.999999'),'.')||'%') as profit
from ttrustfundprofit tt where tt.c_fundcode='005440'
group by tt.c_fundcode

  处理前和处理后的对比截图

 

评论(2)

  1. #2 楼 · beee · 2013-12-19 16:46

    caixu23 writes:

    请改用listagg

    11g2才提供的函数,现在用的数据库很多都是9i,10g的,没那么新啊

  2. #1 楼 · caixu23 · 2013-12-18 21:15

    请改用listagg

评论功能维护中,当前仅展示历史评论。