|
Data type |
Parameters |
Describe |
|
CHAR (n) |
N=1 to 2000 bytes |
Fixed length string,n bytes long, if not specified length, default is 1 bytes long (one kanji is 2 bytes) |
|
archar2 (n) |
n=1 to 4000 bytes |
variable-length string, specifying maximum length when defined n , ASCII character sets (or the character set standards accepted by database systems such as EBCDIC). If the data length does not reach the maximum value n,oracle 8i automatically adjusts the field length according to the size of the data, Oracle 8i automatically deletes it. VARCHAR2 is the most commonly used data type. The maximum length of the index can be 3209. |
|
mber (m,n) |
m=1 to the n=-84 to 127 |
0, positive and negative values, M is the number of digits of all valid digits, n is the number of digits after the decimal point .
if: number (5,2), the maximum value for this field is 99, 999,
example: number (5,2), But enter 575.316 in this field in a row of data, and the value that is actually saved to the field is 575.32.
example: number (3,0), Enter 575.316, and the actual data saved is 575. |
|
date |
|
< Span style= "font-family: the song Body;" > from BC January 1, 4712 to December 31, 4712 of all legal dates, Oracle 8i is actually storing date data internally by 7 bytes, including hours, minutes, and seconds in the definition.
dd-mon-yy, such as July-November-00 Represents November 7, 2000. |
|
Long |
No |
variable long character column with a maximum length limit of 2GB for long strings of data that do not need to be searched for strings, and the varchar2 type for character searches . Long is an older type of data that will gradually be replaced by large object data types such as BLOBs, CLOB, NCLOB, and so on. |
|
Raw (N) |
N=1 to 2000 |
variable-length binary data, which must indicate the maximum length n,oracle 8i in this format to save smaller graphic files or formatted text files, such as Miceosoft Word documents, when specifying fields. Raw is an older data type that will gradually be replaced by large object data types such as BLOBs, CLOB, NCLOB, etc. |
|
long raw |
|
< Span style= "font-family: the song Body;" > variable long binary data with a maximum length of 2GB. Oracle 8i uses this format to save large graphic files or formatted text files, such as Miceosoft Word documents, as well as non-text files such as audio and video. long and long raw types in the same table, and long Raw is an older data type that will gradually be blob, CLOB, NCLOB is replaced by large object data types. |
|
blob
clob nclob |
|
Three large object (LOB) for storing large graphic files or formatted text files, such as Miceosoft Word documents, and non-text files such as audio, video, etc. The maximum length is 4GB. There are several types of lobs, depending on the type of bytes you use, Oracle 8i actually stores the data inside the database. |
|
bfile |
No |
A large binary object file saved outside the database with a maximum length of 4GB. this kind of external LOB type, which records changes through the database, but the data is kept in a specific place outside the database. Oracle 8i can read, query bfile, but cannot write. the size is determined by the operating system. |