Oracle SQL Developer 查询结果表中的小数位数

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11700546/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 01:00:16  来源:igfitidea点击:

Number of decimal digits in Oracle SQL Developer query result sheet

oraclenumbersdecimaloracle-sqldeveloper

提问by mostafa.S

The Date format can be customized in Oracle SQL Developer, how Decimal format can be specified? By that I mean number of decimal digits.

Oracle SQL Developer中可以自定义Date格式,Decimal格式如何指定?我的意思是十进制数字的数量。

In Tools>Preferences>Database>NLS we only have decimal separator, nothing else. Thank you in advance.

在工具>首选项>数据库>NLS中,我们只有小数点分隔符,没有别的。先感谢您。

回答by vijayaragavan

There is no option in Preferences to my knowledge. You can use to_charfunction to display the decimal digits.

据我所知,首选项中没有选项。您可以使用to_char函数来显示十进制数字。

An example:

一个例子:

Try this in HR schema:

在 HR 模式中试试这个:

select to_char(salary,'999999.000'), employee_id from employees;