postgresql to_char integer to string
时间:2022-03-10 18:16
最近用到了postgresql中的to_char将数字转为字符串,现将官网的实例搜集如下
除了以上功能外,to_char还有四舍五入的功能
select to_char(3.005,‘0.99‘)
返回3.01
select to_char(3.003,‘0.99‘)
返回的是3.00
好了有啥问题直接流言一超交流
本文出自 “” 博客,请务必保留此出处
postgresql to_char integer to string,布布扣,bubuko.com