Oracle number数据类型介绍
2017-06-12 22:45
357 查看
number类型存储值的范围为1.0 x 10-130 到 1.0 x 10126(不含)。
每个number占用1-22bytes的存储空间。
NUMBER(p,s)
p is the precision, 最大有效的十进制位数,Oracle guarantees the portability of numbers with precision of up to 20 base-100 digits,
which is equivalent to 39 or 40 decimal digits depending on the position of the decimal point.
s is the scale,指定小数点右边的位数,The scale can range from -84 to 127.如果是负值,比如是-2,相当于round到百分位。
如果s>p,p指的是小数点右边的有效位数,s指的是小数点右边的所有位数。
NUMBER(p)等同于NUMBER(p,0)。
NUMBER,什么都不指定,所有的取值范围。
每个number占用1-22bytes的存储空间。
NUMBER(p,s)
p is the precision, 最大有效的十进制位数,Oracle guarantees the portability of numbers with precision of up to 20 base-100 digits,
which is equivalent to 39 or 40 decimal digits depending on the position of the decimal point.
s is the scale,指定小数点右边的位数,The scale can range from -84 to 127.如果是负值,比如是-2,相当于round到百分位。
如果s>p,p指的是小数点右边的有效位数,s指的是小数点右边的所有位数。
NUMBER(p)等同于NUMBER(p,0)。
NUMBER,什么都不指定,所有的取值范围。
相关文章推荐
- ORACLE NUMBER数据类型
- 【Oracle】oracle的number数据类型
- oracle raw数据类型介绍
- oracle 10g 数据类型占用字节介绍
- oracle number数据类型
- Oracle教程之日期数据类型介绍
- ORACLE中的各种数据类型详细的介绍
- Oracle中number数据类型所占用的字节数
- 为什么oracle的number(19)类型数据用科学计数法表示,并且自动从16位截掉?
- Oracle数据类型之number
- Oracle NUMBER数据类型
- 解决从pl/sql查看oracle的number(19)类型数据为科学计数法的问题
- ORACLE中的各种数据类型详细的介绍
- oracle中的数据类型转换函数to_number
- ORACLE中的各种数据类型详细的介绍
- oracle 数据类型介绍
- [转]ORACLE各种数据类型详细介绍
- oracle raw数据类型介绍
- oracle的number数据类型
- 修改oracle某张表的ID类型varchar2为number,并保留原有数据(因为可能其他表与该表ID关联)