Oracle 数字数据类型

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2116257/
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-18 19:51:03  来源:igfitidea点击:

Oracle Number Data-Type

oracle

提问by domiSchenk

Just got a little question when a column got the Datatype Number(6,3) will this work?

当列获得数据类型编号(6,3)时,有一个小问题,这会起作用吗?

1234
1234.23
12345
123456

btw google didnt help me :/

顺便说一句,谷歌没有帮助我:/

回答by Quassnoi

No, this won't.

不,这不会。

NUMBER(6, 3)accepts 6digits at all with 3being after the decimal period.

NUMBER(6, 3)接受6所有的数字与3小数点周期之后。

This gives us only 3digits possible before the period, and, hence, maximal value possible to store is 999.999

这仅给我们提供3了句点之前可能的数字,因此,可能存储的最大值是999.999