Oracle Built-In Data Types:
Datatype | Description | |
---|---|---|
|
Variable-length character string having maximum length
|
|
|
Variable-length Unicode character string having maximum length |
|
|
Number having precision |
|
|
Character data of variable length up to 2 gigabytes, or 231 -1 bytes. Provided for backward compatibility. |
|
|
|
Valid date range from January 1, 4712 BC to December 31, 9999 AD. The default format is determined explicitly by the |
|
|
32-bit floating point number. This datatype requires 5 bytes, including the length byte. |
|
|
64-bit floating point number. This datatype requires 9 bytes, including the length byte. |
|
|
Year, month, and day values of date, as well as hour, minute, and second values of time, where |
|
All values of |
|
|
|
All values of
The default format is determined explicitly by the |
|
|
Stores a period of time in years and months, where |
|
|
Stores a period of time in days, hours, minutes, and seconds, where
The size is fixed at 11 bytes. |
|
|
Raw binary data of length |
|
|
Raw binary data of variable length up to 2 gigabytes. |
|
|
Base 64 string representing the unique address of a row in its table. This datatype is primarily for values returned by the |
|
|
Base 64 string representing the logical address of a row of an index-organized table. The optional |
|
|
Fixed-length character data of length
|
|
|
Fixed-length character data of length |
|
|
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). |
|
|
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. |
|
|
A binary large object. Maximum size is (4 gigabytes – 1) * (database block size). |
|
|
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. |
Storage of Scale and Precision:
Actual Data | Specified As | Stored As |
---|---|---|
123.89 |
|
123.89 |
123.89 |
|
124 |
123.89 |
|
123.89 |
123.89 |
|
123.9 |
123.89 |
|
exceeds precision |
123.89 |
|
exceeds precision |
123.89 |
|
100 |
.01234 |
|
.01234 |
.00012 |
|
.00012 |
.000127 |
|
.00013 |
.0000012 |
|
.0000012 |
.00000123 |
|
.0000012 |
1.2e-4 |
|
0.00012 |
1.2e-5 |
|
0.00001 |
Datetime Fields and Values:
Datetime Field | Valid Values for Datetime | Valid Values for INTERVAL |
---|---|---|
|
-4712 to 9999 (excluding year 0) |
Any positive or negative integer |
|
01 to 12 |
0 to 11 |
|
01 to 31 (limited by the values of |
Any positive or negative integer |
|
00 to 23 |
0 to 23 |
|
00 to 59 |
0 to 59 |
|
00 to 59.9(n), where 9(n) is the precision of time fractional seconds. The 9(n) portion is not applicable for |
0 to 59.9(n), where 9(n) is the precision of interval fractional seconds |
|
-12 to 14 (This range accommodates daylight saving time changes.) Not applicable for |
Not applicable |
(See note at end of table) |
00 to 59. Not applicable for |
Not applicable |
|
Query the |
Not applicable |
|
Query the |
Not applicable |