Translation_oracle_DataType

AI权益加码!Claude Code、Cursor等20+工具免费用! 购周边限时加赠Coding Plan Lite,畅享主流AI工具!学习进阶更高效! 阅读详情

 

   _             下划线代表翻译辞

 (%)         %代表用翻译下划线的英文


       此颜色代表单词组

       此颜色上文已翻译





Table 3-1 Built-in Data(内置数据) Type Summary(总结)

 

CodeData TypeDescription(描述)

1

VARCHAR2(size [BYTE | CHAR])

Variable-length(可变的长) character string having maximum length size bytes or characters. Maximum sizeis 4000 bytes or characters, and minimum is 1 byte or 1 character. You must specify(指定) size for VARCHAR2.

BYTE indicates that the column will have byte length semantics. CHAR indicates that the column will have character semantics.

1

NVARCHAR2(size)

Variable-length Unicode character string having maximum length size characters. The number of bytes can be up to two times size for AL16UTF16 encoding(编码) and three times size for UTF8 encoding. Maximum size isdetermined(决定) by the national character set definition(定义), with an upper limit(限制) of 4000 bytes. You mustspecify size for NVARCHAR2.

2

NUMBER [ (p [, s]) ]

Number having precision(精确度) p and scale(小数) s. The precision p can range from 1 to 38. The scale s can range from -84 to 127. Both precision andscale are in decimal digits(十进制小数). A NUMBER valuerequires(规定) from 1 to 22 bytes.

2

FLOAT [(p)]

A subtype of the NUMBER data type having precision p. A FLOAT value is represented(代表) internally(内部) as NUMBER. The precision p can range from 1 to 126binary digits(二进制). A FLOAT value requires from 1 to 22 bytes.

8

LONG

Character data of variable length up to 2 gigabytes, or 231 -1 bytes. Provided for backwardcompatibility(兼容).

12

DATE

Valid(有效的) date range from January 1, 4712 BC, to December 31, 9999 AD. The default format isdetermined(决定) explicitly(明确) by the NLS_DATE_FORMAT parameter(参数) or implicitly(绝对的) by the NLS_TERRITORYparameter. The size is fixed(固定) at 7 bytes. This data type contains(包含) the datetime fields(字段) YEARMONTH,DAYHOURMINUTE, and SECOND. It does not have fractional seconds(分数秒)or a time zone(时区).

21

BINARY_FLOAT

32-bit floating point number. This data type requires 4 bytes.

22

BINARY_DOUBLE

64-bit floating point number. This data type requires 8 bytes.

180

TIMESTAMP [(fractional_seconds_precision)]

Year, month, and day values of date, as well as hour, minute, and second values of time, where fractional_seconds_precision is the number ofdigits(数字) in the fractional part of the SECOND(次要) datetime fieldAccepted(公认的) values of fractional_seconds_precision are 0 to 9. The default is 6. The default format is determined explicitly by the NLS_TIMESTAMP_FORMAT parameter or implicitly(绝对的) by theNLS_TERRITORY parameter. The size is 7 or 11 bytes, depending(依赖) on the precision(精度). This data type contains(包含) the datetime fields YEARMONTHDAYHOURMINUTE, and SECOND. Itcontains fractional(包含) seconds but does not have a time zone.

181

TIMESTAMP [(fractional_seconds)] WITH TIME ZONE

All values of TIMESTAMP as well as time zonedisplacement(替代) value, where fractional_seconds_precision is the number of digitsin the fractional part of the SECOND datetime field.Accepted values are 0 to 9. The default is 6. The default format is determined explicitly by the NLS_TIMESTAMP_FORMAT parameter or implicitly by the NLS_TERRITORY parameter. The size is fixed(固定) at 13 bytes. This data type contains the datetime fields YEARMONTHDAYHOURMINUTESECOND,TIMEZONE_HOUR, and TIMEZONE_MINUTE. It has fractional seconds and an explicit time zone.

231

TIMESTAMP [(fractional_seconds)] WITH LOCAL TIME ZONE

All values of TIMESTAMP WITH TIME ZONE, with the following exceptions:

  • Data is normalized(规范的) to the database time zone when it is stored in the database.

  • When the data is retrieved(检查), users see the data in the session time zone.

The default format is determined explicitly by the NLS_TIMESTAMP_FORMAT parameter or implicitly by the NLS_TERRITORY parameter. The size is 7 or 11 bytes, depending on the precision(精度).

182

INTERVAL YEAR [(year_precision)] TO MONTH

Stores(储存) period(阶段) of time in years and months, where year_precision is the number of digits(位数) in theYEAR datetime field. Accepted(公认的) values are 0 to 9. The default is 2. The size is fixed at 5 bytes.

183

INTERVAL DAY [(day_precision)] TO SECOND[(fractional_seconds)]

Stores a period of time in days, hours, minutes, and seconds, where

  • day_precision is the maximum number of digits in the DAY datetime field. Accepted values are 0 to 9. The default is 2.

  • fractional_seconds_precision is the number of digits in the fractional part of the SECONDfield. Accepted values are 0 to 9. The default is 6.

The size is fixed at 11 bytes.

23

RAW(size)

Raw(最初的) binary data of length size bytes. Maximum size is 2000 bytes. You must specify size for a RAW value.

24

LONG RAW

Raw binary data of variable length up to 2 gigabytes.

69

ROWID

Base 64 string representing(代表) the unique address of a row in its table(地址). This data type isprimarily(主要的) for values returned by the ROWID pseudocolumn.

208

UROWID [(size)]

Base 64 string representing the logical(逻辑) address of a row of an index-organized table. The optionalsize is the size of(..大小) a column of type UROWID. The maximum size and default is 4000 bytes.

96

CHAR [(size [BYTE | CHAR])]

Fixed(固定)-length character data of length size bytes or characters. Maximum size is 2000 bytes or characters. Default and minimum size is 1 byte.

BYTE and CHAR have the same semantics(语法) asfor VARCHAR2.

96

NCHAR[(size)]

Fixed-length character data of length size characters.The number of(..的数量) bytes can be up to two times size for AL16UTF16 encoding and three times size for UTF8 encoding. Maximum size isdetermined(决定) by the national character setdefinition(定义), with an upper limit of 2000 bytes. Default and minimum size is 1 character.

112

CLOB

A character large object containing single(单)-byte ormultibyte(多字节) characters. Both fixed-width andvariable(变化的)-width character sets(字符集) aresupported(支持的), both using the database character set. Maximum size is (4 gigabytes - 1) * (database block size).

112

NCLOB

A character large object containing Unicode characters. Both fixed-width and variable-width character sets are supported, both using the databasenational character set. Maximum size is (4 gigabytes - 1) * (database block(块) size). Stores nationalcharacter set data.

113

BLOB

A binary large object. Maximum size is (4 gigabytes - 1) * (database block size).

114

BFILE

Contains a locator(位置) to a large(多数的) binary file stored (存信息的) outside the database.Enables(使..) byte stream(流) I/O access toexternal(外部的) LOBs residing on the database server. Maximum size is 4 gigabytes.



(官档自学)Oracle Data Types数据种类 (官档自学)Oracle Data Types数据种类 每列都有一个数据类型,该数据类型都有特定的存储格式,约束和值的有效范围 这些属性可以让oracle区别对待他们每一种。比如,你可以乘NUMBER 却不可以乘RAW类。 当表被创建的时候,你必须为每一个columns指定一种数据类型。随后插入到列中的每个值均采用这个列数据类型。 oracle提供几种嵌入内置数据类型,最常见的有: 1Character Data Types 字符数据类型 2. Numeric Data Types 数字数据类型 3. 阅读详情

相关推荐

Oracle数据类型学习

数据类型(datatype)是列(column)或存储过程中的一个属性。    Oracle支持的数据类型可以分为三个基本种类:字符数据类型、数字数据类型以及表示其它数据的数据类型。    字符数据类型    CHAR CHAR数据类型存储固定长度的子符值。一个CHAR数据类型可以包括1到2000个字符。如果对CHAR没有明确地说明长度,它的默认长度则设置为1.如果对某个CHAR类型变

hotdogcug的专栏 1050

oracle内部的数据类型datatype

Oracle data types这一章介绍的是oracle内置的数据类型,它们的属性,还有它们如何映射到非oracle数据类型中。Oracle数据类型的介绍SQL语句中的每一行的值和常数都有一个数据类型,他们和特定的存储格式,约束和值的范围有关系。你创建一个表的时候,必须要给每一行都制定一个数据类型。字符型数据类型字符型数据类型把字符存储在字符串中。Oracle内部的字符集...

weixin_34109408的博客 604

Oracle数据类型

数据类型(datatype)是列(column)或存储过程中的一个属性。     Oracle支持的数据类型可以分为三个基本种类:字符数据类型、数字数据类型以及表示其它数据的数据类型。     字符数据类型     CHAR CHAR数据类型存储固定长度的子符值。一个CHAR数据类型可以包括1到2000个字符。如果对CHAR没有明确地说明长度,它的默认长度则设置为1.如果对某个CHAR类型变

巫山云的专栏 1369

DataTypeOracle数据类型官方说明)

引自Oracle® Database SQL Reference 10g Release 2(10.2)的第2章Basic Elements of Oracle SQL的Datatypes小节:   Table2-1 Built-in Datatype Summary Code Datatype Description 1

Wolex--KEEP MOVING 4683

2004年的图灵奖获得者-Robert E. Kahn

<v:shapetype id="_x0000_t75" coordsize="21600,21600"o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f"stroked="f"><v:shape id="_x0000_i1

温研的专栏 (探索OS内核的奥秘) 2433

CNCC 2018参会回顾、总结

今年有幸参加了在杭州国际博览中心召开的CNCC 2018,在此回顾、总结参会历程。

the Blog of 等不到天亮丶等时光 2350

oracle data_type,oracle built-in data type

Oracle Built-in Data TypesScalar Data TypesCharacter data: Character data can be stored as either fixed-length or variable-length strings in the database.Fixed-length character data types, such as CHA...

weixin_42102713的博客 215

ORACLE基本数据类型总结

     ORACLE基本数据类型(亦叫内置数据类型 built-in datatypes)可以按类型分为:字符串类型、数字类型、日期类型、LOB类型、LONG RAW&amp; RAW类型、ROWID &amp; UROWID类型。 在讲叙字符串类型前,先要讲一下编码。字符串类型的数据可依编码方式分成数据库字符集(CHAR/VARCHAR2/CLOB/LONG)和国际字符集(NCHAR/NVA...

weixin_33772645的博客 1006

oracle data_type,oracle数据类型data type与存储空间大小(一)

SQL> desc t_seq;####查看表结构Name Null? Type----------------------------------------- -------- ----------------------------A...

weixin_39621178的博客 447

oracle data types,Oracle内置数据类型(Built-in Data Types)

1VARCHAR2(size[BYTE|CHAR])Variable-length character string having maximum lengthsizebytes or characters.Maximumsizeis 4000 bytesor characters, and minimum is 1 byte or 1 character. You must specifysi...

weixin_39969232的博客 316

Oracle JDBC dataType

Oracle JDBC dataType     SQL Datatypes JDBC Typecodes Standard Java Types Oracle Extension Java Types   STANDARD JDBC 1.0 TYPES:     CHAR ...

u010809395的专栏 277

oracle 空字符串 截断,Oracle中的varchar2类型及其字符串截取

1、varchar2类型介绍1.1 Oracle数据库常用的数据类型介绍varchar2类型的同时,我们顺便了解下Oracle数据库支持的其他数据类型。如下摘自Oracle官方文档Built-in Data Type Summary,简单介绍了Oracle中常用的数据类型。CodeData TypeDescriptionMemo1VARCHAR2(size [BYTE | CHAR])Variab...

weixin_32924669的博客 1620

oracle 存储负数的类型,oracle内部的数据类型datatype

Oracle data types这一章介绍的是oracle内置的数据类型,它们的属性,还有它们如何映射到非oracle数据类型中。Oracle数据类型的介绍SQL语句中的每一行的值和常数都有一个数据类型,他们和特定的存储格式,约束和值的范围有关系。你创建一个表的时候,必须要给每一行都制定一个数据类型。字符型数据类型字符型数据类型把字符存储在字符串中。Oracle内部的字符集在创建数据库的时候已经...

weixin_39562554的博客 1717

ORACLE number

data_precision -- 整数 data_scale --小数位 1、查询数据类型为number,data_precision 为null,data_scale 为null 的数据 SELECT DISTINCT t1.TABLE_NAME from sys.dba_tab_cols t1 WHERE t1.data_type = 'NUMBER' AND t1.data_scale IS null AND t1.DATA_PRECISION IS null AND t1.OWNER NO..

CarloPan的博客 1090

Oracle 9i的数据类型

Oracle 9i共提供了16种标量数据类型,如表7.4所示。表7.4 Oracle 9i的标量数据类型 名称 含义 Char 用于描述定长的字符型数据,长度<=2000字节 varchar2 用于描述变长的字符型数据,长度<=4000字节 nchar 用来存储Unicode字符集的定长字符型数据,长度<=1...

weixin_30907523的博客 174

Oracle Data Type

文档地址:http://docs.oracle.com/cd/E11882_01/appdev.112/e10646/oci03typ.htm#LNOCI16268 RAW The RAW data type is used for binary data or byte strings that are not to be interpreted by Oracle Database, for

甲骨文可乐的专栏 969

Oracle Datatypes

Oracle Datatypes 1 Numeric Datatypes(数值类型) TYPE Precision Scale(小数位数) NUMBER(precision, scale) Fixed and floating-point numbers 10−130≤v&lt;10126 10^{-130} \leq v&lt;10^{126} 10−130≤...

CC 227

Oracle NUMBER类型字段的data_length 为什么是22?

抛出的这个问题,大家或许有意无意的发现自己Oracle数据库环境中的number类型字段的data_length 长度都为22? SQL: select t.DATA_TYPE, t.DATA_LENGTH, t.DATA_PRECISION, from user_tab_columns t where upper(t.TABLE_NAME) = upper('user') ...

爱码僧的博客 6444
上一篇: Java 技术是什么?
下一篇: Translation_java_StringBuffer
without0815
博客等级 码龄15年 107粉丝 79原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值