首页 动态 postgresql 中round函数的用法讲解 postgresql 中round函数的用法讲解 动态 dawei 2021年10月15日 round函数是去小数点,我查过好多方法并不好用,于是有了 1round(cast(a/b as numeric), 2) 这个就可以用,要加个cast才可以的 补充:postgresql中to_char和round的混合使用 在postgresql中大家都用过round吧,当遇到小数的时候该如何显示呢?看例子 1SELECT to_char(round(127 * 0.1 / 67543,6)*10000,'90.99') PostgreSQL roun round 函数 用法 讲解