Oracle / PLSQL: TO_CLOB Function

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

Description

The Oracle/PLSQL TO_CLOB characteristic converts a LOB fee from the country wide personality set to the database character set.

Syntax

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

TO_CLOB( expression )

Parameters or Arguments

expression A lob_column, char, varchar2, nchar, nvarchar2, clob or nclob value.

Returns

The TO_CLOB function returns a CLOB value.

Applies To

The TO_CLOB feature can be used in the following variations of Oracle/PLSQL:

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

Example

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

For example:

select TO_CLOB(nclob_column)
from suppliers;

This example would convert the value in the discipline referred to as nclob_column to a CLOB value.