现在的位置: 首页 > 综合 > 正文

Translation_oracle_DataType

2013年08月20日 ⁄ 综合 ⁄ 共 5798字 ⁄ 字号 评论关闭

 

   _             下划线代表翻译辞

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


  
   此颜色代表单词组


  
   此颜色上文已翻译





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

 

Code Data Type Description(描述)

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.
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.


抱歉!评论已关闭.