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数据库,对varchar类型字段str进行where str=0条件查询时,查询结果是什么
2、敏捷开发--工作流程的梳理
3、SAE上传web应用(包括使用数据库)教程详解及问题解惑
4、云通讯平台的音视频开发
5、典型用户和用户场景描述


长按二维码向我转账

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

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

    已发送

    朋友将在看一看看到

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

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号