Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
抱歉,我是 Oracle 的新手,在选择表格中的某些数字时遇到了一些麻烦varchar2。
varchar2
我需要它们是小数点后 2 位的数字。
例如:
00008600 00202033 00094123
需要
86.00 2020.33 941.23
我怎么能做到这一点?
你可以使用这样的东西:
select to_char(to_number(yourcol)/100.0, '9999999d99') yourColFormatted from yourTable
请参阅带有演示的 SQL Fiddle