Oracle 中的Interger类型

简介:

引自 wolfAoneoracle有没有integer类型,这种类型的最大值是多少啊.

Integer是Number类型的子类型:


NUMBER Type 

You use the NUMBER datatype to store fixed or floating point numbers 
of virtually any size.  You can specify precision, which is the total 
number of digits, and scale, which determines where rounding occurs. 
The syntax follows: 

    NUMBER[(precision, scale)] 

You cannot use constants or variables to specify precision and scale; 
you must use integer literals.  The maximum precision of a NUMBER value 

is 38; the magnitude range is 1.0E-129 .. 9.99E125.  If you do not 
specify the precision, it defaults to the maximum value supported by 
your system. 

Scale can range from -84 to 127.  For instance, a scale of 2 rounds to 
the nearest hundredth (3.456 becomes 3.46).  Scale can be negative, 
which causes rounding to the left of the decimal point.  For example, 
a scale of -3 rounds to the nearest thousand (3456 becomes 3000).  A 

scale of zero rounds to the nearest whole number.  If you do not specify 
the scale, it defaults to zero. 

The NUMBER subtypes below have the same range of values as their base 
type.  For example, FLOAT is just another name for NUMBER. 

    DEC 
    DECIMAL 
    DOUBLE PRECISION 
    FLOAT 
    INTEGER 
    INT 
    NUMERIC 
    REAL 
    SMALLINT 

You can use these subtypes for compatibility or when you want an 

identifier more descriptive than NUMBER.

没有整理与归纳的知识,一文不值!高度概括与梳理的知识,才是自己真正的知识与技能。 永远不要让自己的自由、好奇、充满创造力的想法被现实的框架所束缚,让创造力自由成长吧! 多花时间,关心他(她)人,正如别人所关心你的。理想的腾飞与实现,没有别人的支持与帮助,是万万不能的。




    本文转自wenglabs博客园博客,原文链接:http://www.cnblogs.com/arxive/p/6093050.html ,如需转载请自行联系原作者

相关文章
|
4月前
|
SQL Oracle 关系型数据库
java往oracle存clob类型的值时,字符长度过长怎么办?
java往oracle存clob类型的值时,字符长度过长怎么办?
68 1
|
2月前
|
Oracle 关系型数据库 数据库
Flink Sink to Oracle 存在字段CLOB类型,如何处理错误”ORA-01461: 仅能绑定要插入LONG的LONG值“
做Flink CDC同步数据过程中,目标是Oracle数据库,其中某个字段较大被设置为CLOB类型,其中会遇到异常,”ORA-01461: 仅能绑定要插入LONG的LONG值“
|
3月前
|
SQL Oracle 关系型数据库
Oracle PL/SQL 第五章–复合类型
Oracle PL/SQL 第五章–复合类型
|
5月前
|
Oracle 关系型数据库 数据库
在Flink CDC中,使用Oracle 11g数据库的NUMBER类型作为主键
在Flink CDC中,使用Oracle 11g数据库的NUMBER类型作为主键
46 1
|
Oracle 关系型数据库
oracle 判断字段相等,但类型不同引起的性能问题
oracle 判断字段相等,但类型不同引起的性能问题
oracle 判断字段相等,但类型不同引起的性能问题
|
SQL Oracle 关系型数据库
sql中datetime日期类型字段比较(mysql&oracle)
sql中datetime日期类型字段比较(mysql&oracle)
247 1
|
存储 SQL Oracle
如何查看和下载Oracle BLOB类型的数据
如何查看和下载Oracle BLOB类型的数据
562 0
|
缓存 负载均衡 Oracle
Oracle rac集群中的IP类型简介
Oracle rac集群中的IP类型简介
547 0

推荐镜像

更多