我的编程空间,编程开发者的网络收藏夹
学习永远不晚

Oracle data type number

短信预约 -IT技能 免费直播动态提醒
省份

北京

  • 北京
  • 上海
  • 天津
  • 重庆
  • 河北
  • 山东
  • 辽宁
  • 黑龙江
  • 吉林
  • 甘肃
  • 青海
  • 河南
  • 江苏
  • 湖北
  • 湖南
  • 江西
  • 浙江
  • 广东
  • 云南
  • 福建
  • 海南
  • 山西
  • 四川
  • 陕西
  • 贵州
  • 安徽
  • 广西
  • 内蒙
  • 西藏
  • 新疆
  • 宁夏
  • 兵团
手机号立即预约

请填写图片验证码后获取短信验证码

看不清楚,换张图片

免费获取短信验证码

Oracle data type number

Oracle number

NUMBER [ (p [, s]) ]

Number having precision p and scale s. Theprecision p can range from 1 to 38. The scale s can range from -84 to 127. Bothprecision and scale are in decimal digits. A NUMBER value requires from 1 to 22bytes.

scale是可选的。

SQL> drop tablet_number purge;

Table dropped

SQL> create tablet_number(id number(5), id1 number(5,3));

Table created

SQL> insert intot_number values(10000.8999999999999999999×××99988888888888889,10.003);

1 row inserted

SQL> insert intot_number values(10000.8999999999999999999×××99988888888888889,10.0034);

1 row inserted

SQL> --insert intot_number values(10000.8999999999999999999×××99988888888888889,100.003); --报错

SQL> commit;

Commit complete

SQL> select * fromt_number;

    ID    ID1

------ -------

 10001 10.003

 10001 10.003

 

在Oracle中NUMBER的定义:

1、只有一个参数时,如NUMBER(24)。表示所定义的数字最大可设置24位整数。

2、有两个参数时,如NUMBER(38,3)。表示所定义的数字最大是38位长,其中包含3位小数。就是说这个类型最大可设置35位整数和3位小数。

3、小数位超出长度会进行四舍五入,整数位超出长度报错。


免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

Oracle data type number

下载Word文档到电脑,方便收藏和打印~

下载Word文档

猜你喜欢

ORA-53124: cannot find VR number for data type: string ORACLE 报错 故障修复 远程处理

文档解释ORA-53124: cannot find VR number for data type: stringCause: The VR number for the listed data type could not be
ORA-53124: cannot find VR number for data type: string ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-26097: unsupported conversion for column string (from type number to type number) ORACLE 报错 故障修复

文档解释ORA-26097: unsupported conversion for column string (from type number to type number)Cause: The direct path api
ORA-26097: unsupported conversion for column string (from type number to type number) ORACLE 报错 故障修复
2023-11-05

ORA-01205: not a data file – type number in header is string ORACLE 报错 故障修复 远程处理

文档解释ORA-01205: not a data file - type number in header is stringCause: The file type in the header is not correct for a
ORA-01205: not a data file – type number in header is string ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-08429: raw data has invalid digit in display type data ORACLE 报错 故障修复 远程处理

文档解释ORA-08429: raw data has invalid digit in display type dataCause: The input raw buffer passed to a UTL_PG
ORA-08429: raw data has invalid digit in display type data ORACLE 报错 故障修复 远程处理
2023-11-04

ORA-40212: invalid target data type in input data for string function ORACLE 报错 故障修复 远程处理

文档解释ORA-40212: invalid target data type in input data for string functionCause: Target data type was invalid.Action:
ORA-40212: invalid target data type in input data for string function ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-29893: indextypes without column data do not need the given data type ORACLE 报错 故障修复 远程处理

文档解释ORA-29893: indextypes without column data do not need the given data typeCause: WITH ARRAY DML (DATA_TYPE,
ORA-29893: indextypes without column data do not need the given data type ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-48203: Illegal Data Type [string] ORACLE 报错 故障修复 远程处理

文档解释ORA-48203: Illegal Data Type [string]Cause: Illegal data type specified.Action: Use a valid data
ORA-48203: Illegal Data Type [string] ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-22371: Table contains data of type string.string, version string, which does not exist ORACLE 报错

文档解释ORA-22371: Table contains data of type string.string, version string, which does not existCause: Some of the older
ORA-22371: Table contains data of type string.string, version string, which does not exist ORACLE 报错
2023-11-04

ORA-32131: bind data type cannot be changed ORACLE 报错 故障修复 远程处理

文档解释ORA-32131: bind data type cannot be changedCause: The setXXX method is called again with a different data type than
ORA-32131: bind data type cannot be changed ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-54027: cannot modify data-type of virtual column ORACLE 报错 故障修复 远程处理

文档解释ORA-54027: cannot modify data-type of virtual columnCause: Attempted to change the data-type of virtual column
ORA-54027: cannot modify data-type of virtual column ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-14751: Invalid data type for partitioning column of an interval partitioned table ORACLE 报错 故障修复

文档解释ORA-14751: Invalid data type for partitioning column of an interval partitioned tableCause: You attempted to use
ORA-14751: Invalid data type for partitioning column of an interval partitioned table ORACLE 报错 故障修复
2023-11-05

ORA-16308: specified table has extended data type support ORACLE 报错 故障修复 远程处理

文档解释ORA-16308: specified table has extended data type supportCause: A call was made to DBMS_LOGSTDBY.INSTANTIATE_TABLE
ORA-16308: specified table has extended data type support ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-30081: invalid data type for datetime/interval arithmetic ORACLE 报错 故障修复 远程处理

文档解释ORA-30081: invalid data type for datetime/interval arithmeticCause: The data types of the operands are not valid
ORA-30081: invalid data type for datetime/interval arithmetic ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-38507: attributes of string data type should be indexed ORACLE 报错 故障修复 远程处理

文档解释ORA-38507: attributes of string data type should be indexedCause: An attempt was made to configure an attribute of
ORA-38507: attributes of string data type should be indexed ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-26093: input data column size (number) exceeds the maximum input size (number) ORACLE 报错 故障修复 远程

文档解释ORA-26093: input data column size (number) exceeds the maximum input size (number)Cause: The user attempted to
ORA-26093: input data column size (number) exceeds the maximum input size (number) ORACLE 报错 故障修复 远程
2023-11-05

ORA-28330: encryption is not allowed for this data type ORACLE 报错 故障修复 远程处理

文档解释ORA-28330: encryption is not allowed for this data typeCause: Data type was not supported for column
ORA-28330: encryption is not allowed for this data type ORACLE 报错 故障修复 远程处理
2023-11-04

编程热搜

目录