O_Number函数如果数字为Morethan 15数字
select to_number('5131427328503192','9999999999999999')
from dual
输出: 5.13142732850319E15
我如何使输出原样数字
select to_number('5131427328503192','9999999999999999')
from dual
output: 5.13142732850319E15
How I can make the output as-is number
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一个数字存储为二进制数据,并且使用任何特定(可读)格式的数据库中存储在数据库中。
数字的格式是您用于连接到数据库的客户端应用程序的函数。
在SQL*plus中,您可以使用:
在其他客户端应用程序中,您可以检查设置/首选项,以查看它们是否支持默认号码格式并更改。
但是,
如果您想要特定格式,那么最可靠的解决方案是使用
to_char
使用明确格式的模型将您的(未施加)编号转换为格式的字符串:A number is stored as binary data and is NEVER stored in the database with any particular (human-readable) formatting.
How the number is formatted is a function of the client application that you use to connect to the database.
In SQL*Plus, you can use:
In other client applications you can check the settings/preferences to see if they support a default number format and change that.
However
If you want a specific format then the most reliable solution is to convert your (unformatted) number to a formatted string using
TO_CHAR
with an explicit format model: