开发者

Oracle query cast attribute

开发者 https://www.devze.com 2023-03-10 10:57 出处:网络
I am trying to convert a decimal to text. Every time I try to cast, it converts the number this开发者_Python百科 way:

I am trying to convert a decimal to text. Every time I try to cast, it converts the number this开发者_Python百科 way:

number:   converted: 
---------------------
0.1234    .1234

I tried using TO_CHAR, but without success.


Use the second format parameter of TO_CHAR function.

Try something like:

SELECT TO_CHAR(0.1234, '00000000.00') FROM DUAL
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号