selectcase when (grouping(glbm)=1) then '合计' else DECODE(glbm,null,'',glbm) end glbm,case when (grouping(hpzl)=1) then '' else DECODE(hpzl,null,'',hpzl) end hpzl,case when (grouping(syxz)=1 and grouping(hpzl)=0) then '小计' else DECODE(syxz,null,'',syx