Oracle / PLSQL: EMPTY_CLOB Function

This article is written about how to use the Oracle/PLSQL EMPTY_CLOB function with syntax and examples.


The Oracle/PLSQL EMPTY_CLOB function can be used to initialize a LOB column to EMPTY in an INSERT statement or UPDATE statement or it can be used initalize a LOB variable.


The syntax for the EMPTY_CLOB function in Oracle/PLSQL is:


Parameters or Arguments

There are no parameters or arguments for the EMPTY_CLOB function.


The EMPTY_CLOB function returns an empty LOB locator.

Applies To

The EMPTY_CLOB function can be used in the following versions of Oracle/PLSQL:

Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i, Oracle 8i


Let’s look at some Oracle EMPTY_CLOB function examples and explore how to use the EMPTY_CLOB function in Oracle/PLSQL.

For example:

UPDATE customers
SET customer_photo = EMPTY_CLOB();

This EMPTY_CLOB example would initialize the customer_photo column to EMPTY. This is different than setting the column to a null LOB or a LOB with a string length of 0.