Oracle Plsql To_clob Function

Oracle / PLSQL: TO_CLOB Function

This Oracle tutorial explains how to use the Oracle/PLSQL TO_CLOB function with syntax and examples.

Description

The Oracle/PLSQL TO_CLOB function converts a LOB value from the national character 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 function can be used in the following versions of Oracle/PLSQL:

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

Example

Let's look at some Oracle TO_CLOB function 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 field called nclob_column to a CLOB value.