Clob, blob and bfile

Clob, blob and bfile in PL/SQL

  1. CLOB (Character Large Object): CLOB is used to store large amounts of character data, such as text. It can store up to 4 GB of data and is used to handle data that is larger than the VARCHAR2 datatype. CLOB data is stored in the database and can be accessed using SQL and PL/SQL.
  2. BLOB (Binary Large Object): BLOB is used to store large amounts of binary data, such as images, audio, or video files. It can store up to 4 GB of data and is used to handle data that is larger than the RAW datatype. BLOB data is stored in the database and can be accessed using SQL and PL/SQL.
  3. BFILE (Binary FILE): BFILE is used to store large binary files, such as images or videos, outside the database. BFILEs can be up to 4 GB in size and are stored on the file system. BFILEs can be accessed using SQL and PL/SQL, but they cannot be modified using SQL or PL/SQL. To modify a BFILE, you must use an external program to read and write the file.

When working with large amounts of data, it is important to choose the appropriate datatype for your needs. If you are working with character data, use CLOBs. If you are working with binary data, use BLOBs. If you need to store large binary files outside the database, use BFILEs. It is important to note that working with large amounts of data can impact performance, so it is important to optimize your code and use appropriate indexing and caching strategies.

Apply for PL/SQL Certification

https://www.vskills.in/certification/certified-pl-sql-developer

Back to Tutorials

Share this post
[social_warfare]
Advanced Datatypes
Custom data types

Get industry recognized certification – Contact us

keyboard_arrow_up