The main differences between BLOB (Binary Large Object) and CLOB (Character Large Object) in Oracle are: 1. BLOB stores binary data, while CLOB stores character data; 2. The maximum size of BLOB is 4 GB, and the maximum size of CLOB is 4 GB or 32 times the database block size; 3. BLOB does not support indexes, while CLOB supports part of the index; 4. Querying BLOB loads the entire BLOB, while querying CLOB only loads the first 4000 characters; 5. BLOB is stored in the LOB segment , and CLOB
The difference between BLOB and CLOB in Oracle
Question: Oracle What is the difference between BLOB and CLOB?
Answer: BLOB (Binary Large Object) and CLOB (Character Large Object) are large objects that store binary files and text files in Oracle database. The main differences between them are as follows:
1. Data type
2. Size Limitations
3. Index
4. Query efficiency
5. Storage
6. Purpose
The following is a table summarizing the key differences between BLOBs and CLOBs:
Features | BLOB | CLOB |
---|---|---|
Data type | Binary | Character |
Size limit | 4 GB | 4 GB or 32 times the database block size |
Index | Not supported | Partially supported |
Query efficiency | Low | High |
Storage | LOB segment | Table space |
Binary file | Text file |
The above is the detailed content of The difference between blob and clob in oracle. For more information, please follow other related articles on the PHP Chinese website!