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.
如果数字具有十进制值,我需要显示 3 个十进制值,因为假设数字没有小数,那么将在小数点后显示零我尝试使用 TO_CHAR 函数但是当我将 to_char 转换为 TO_NUMBER 时,它显示的数字是四舍五入的值
你的问题有点模糊,但我想你需要类似的东西
TO_CHAR(n, '999G990D000')
显示零。
如果您有权更改 SCHEMA,那么您可以这样做:
ALTER TABLE TABLENAME Modify Attrib Number(10,3);