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
Oracle Number Data-Type
提问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 6
digits at all with 3
being after the decimal period.
NUMBER(6, 3)
接受6
所有的数字与3
小数点周期之后。
This gives us only 3
digits possible before the period, and, hence, maximal value possible to store is 999.999
这仅给我们提供3
了句点之前可能的数字,因此,可能存储的最大值是999.999