zoukankan      html  css  js  c++  java
  • oracle百分比计算

    CASE
    WHEN V.GET_NUM /V.EFFECTIVE_NUM is null THEN ''
    WHEN V.GET_NUM /V.EFFECTIVE_NUM is not null THEN TO_CHAR ( NVL(ROUND
    (V.GET_NUM /V.EFFECTIVE_NUM, 4) * 100,0),'fm9999999990.00') || '%'
    ELSE '' END as THTJ_PROBABILITY

    =======================================================

    TO_CHAR ( NVL(ROUND
    (V.GET_NUM /V.EFFECTIVE_NUM, 4) * 100,0),'fm9999999990.00')这句话防止0.0的时候不显示第一个0,只显示“点0”(.0),加上这句话就会显示0.0了。

  • 相关阅读:
    Go反射
    Go_CSP并发模型
    Go_select
    Go计时器
    day9:vcp考试
    day8:vcp考试
    day7:vcp考试
    day6:vcp考试
    day5:vcp考试
    day4:vcp考试
  • 原文地址:https://www.cnblogs.com/konglxblog/p/10011946.html
Copyright © 2011-2022 走看看