加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

postgresql to_char数字转换

发布时间:2020-12-13 17:09:39 所属栏目:百科 来源:网络整理
导读:最近用到了postgresql中的to_char将数字转为字符串,现将官网的实例搜集如下 除了以上功能外,to_char还有四舍五入的功能 1 select to_char(3.005, '0.99' ) 返回3.01 to_char(3.003,monospace!important; font-size:1em!important; min-height:inherit!impo

最近用到了postgresql中的to_char将数字转为字符串,现将官网的实例搜集如下

除了以上功能外,to_char还有四舍五入的功能

1
select to_char(3.005, '0.99' )

返回3.01

to_char(3.003,monospace!important; font-size:1em!important; min-height:inherit!important; background:none!important">)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

相关内容
推荐文章
站长推荐
热点阅读