The table that follows(跟随,遵照) summarizes(总结,概述) Oracle built-in data types. Refer(参考,查阅) to the syntax(语法,句法)in the preceding(在...之前,前) sections(截面,节段,部分) for the syntactic(句法的,语法结构) elements(元素,成份,原理). The codes(编码,代码) listed(列出) for the data types are used internally(内部的) by Oracle Database. The data type code of a column or object attribute is returned by the DUMP(倾倒)
function.
Table 3-1 Built-in Data Type Summary(概要,简要)
Code | Data Type | Description |
---|---|---|
1 |
|
Variable-length(变长,可变长度) character(字符,特性) string having(所有,具有) maximum length |
1 |
|
Variable-length Unicode character string having maximum length |
2 |
|
Number having precision(精度,精确的) |
2 |
|
A subtype(图表类型) of the |
8 |
|
Character data of variable length up to 2 gigabytes(十亿字节), or 231 -1 bytes. Provided(假如,提供) for backward(向后的) compatibility(兼容性). |
12 |
|
Valid(有效的,正确的) date range from January(1月) 1, 4712 BC(公元前4712), to December(12月) 31, 9999 AD. The default format is determined(决定) explicitly(明确的) by(由) the |
21 |
|
32-bit floating point(点,要点) number. This data type requires(需要) 4 bytes. |
22 |
|
64-bit floating point number. This data type requires 8 bytes. |
180 |
|
Year, month, and day values of date, as well as hour, minute, and second values of time, where |
181 |
|
All values of |
231 |
|
All values of
The default format is determined(决定,确定) explicitly(明确) by the(由) |
182 |
|
Stores(存储) a period(周期,期间) of time in years and months, where |
183 |
|
Stores a period of time in days, hours, minutes, and seconds, where
The size is fixed at 11 bytes. |
23 |
|
Raw(生的,原始) binary data of length |
24 |
|
Raw binary data of variable length up(可达) to 2 gigabytes(千兆字节). |
69 |
|
Base(基地) 64 string representing(代表) the unique(唯一的,独特的) address of a row in its table. This data type is primarily(主要) for values returned by the |
208 |
|
Base 64 string representing the logical(合乎逻辑的) address of a row of an index-organized(索引组织) table. The optional(可选) |
96 |
|
Fixed-length(固定长度) character data of length |
96 |
|
Fixed-length character data of length |
112 |
|
A character large(大) object containing single(单一的,单个的)-byte or multibyte(多字节的) characters. Both fixed-width and variable-width character sets are supported(支持), both(两者) using the database character set. Maximum size is (4 gigabytes - 1) * (database block(块) size). |
112 |
|
A character large object containing Unicode characters. Both fixed-width and variable-width character sets are supported, both using the database national character set(数据库国家字符集). Maximum size is (4 gigabytes - 1) * (database block size). Stores national character set data. |
113 |
|
A binary large object. Maximum size is (4 gigabytes - 1) * (database block size). |
114 |
|
Contains a locator(定位) to a large binary file stored outside(外面的,外部的) the database. Enables(使...) byte stream(字节流) I/O access(进入,访问) to external(外部,表面的) LOBs residing(居于,居住) on the database server. Maximum size is 4 gigabytes. |
The sections(部分,截面) that follow describe the Oracle data types as they are stored in Oracle Database. For information(信息) on specifying these data types as literals(文字), refer(参考) to "Literals".