wm_concat 使用

 经常用的,自己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

  处理前和处理后的对比截图
wm_concat 使用_第1张图片
 

wm_concat 使用_第2张图片
 
 

你可能感兴趣的:(行转列,使用,wm_concat,字符串拼接,解决小数点前面0丢失)