Oracle 中的Interger类型


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

Integer是Number类型的子类型:


NUMBERType

YouusetheNUMBERdatatypetostorefixedorfloatingpointnumbers
ofvirtuallyanysize.Youcanspecifyprecision,whichisthetotal
numberofdigits,andscale,whichdetermineswhereroundingoccurs.
Thesyntaxfollows:

NUMBER[(precision,scale)]

Youcannotuseconstantsorvariablestospecifyprecisionandscale;
youmustuseintegerliterals.ThemaximumprecisionofaNUMBERvalue

is38;themagnituderangeis1.0E-129..9.99E125.Ifyoudonot
specifytheprecision,itdefaultstothemaximumvaluesupportedby
yoursystem.

Scalecanrangefrom-84to127.Forinstance,ascaleof2roundsto
thenearesthundredth(3.456becomes3.46).Scalecanbenegative,
whichcausesroundingtotheleftofthedecimalpoint.Forexample,
ascaleof-3roundstothenearestthousand(3456becomes3000).A

scaleofzeroroundstothenearestwholenumber.Ifyoudonotspecify
thescale,itdefaultstozero.

TheNUMBERsubtypesbelowhavethesamerangeofvaluesastheirbase
type.Forexample,FLOATisjustanothernameforNUMBER.

DEC
DECIMAL
DOUBLEPRECISION
FLOAT
INTEGER
INT
NUMERIC
REAL
SMALLINT

Youcanusethesesubtypesforcompatibilityorwhenyouwantan

identifiermoredescriptivethanNUMBER.

优质内容筛选与推荐>>
1、mysql 编码转换
2、Scrapy和MongoDB的应用---爬取
3、【HDU 3507】Print Article(斜率优化dp)
4、R数据结构之数据框创建
5、2012年第三届蓝桥杯Java本科组省赛试题解析


长按二维码向我转账

受苹果公司新规定影响,微信 iOS 版的赞赏功能被关闭,可通过二维码转账支持公众号。

    阅读
    好看
    已推荐到看一看
    你的朋友可以在“发现”-“看一看”看到你认为好看的文章。
    已取消,“好看”想法已同步删除
    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号