摘要: --1 例子postgres=# select 1/4; ?column? 0(1 row) 在PG里如果想做除法并想保留小数,用上面的方法却行不通,因为"/" 运算结果为取整,并且会截掉小数部分。 --2 类型转换postgres=# select round(1::numeric/4::nume 阅读全文
posted @ 2018-09-11 11:33 _小豪豪 阅读(8064) 评论(0) 推荐(0)