Oracle Plsql To_nclob Function

Oracle / PLSQL: TO_NCLOB Function

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

Description

The Oracle/PLSQL TO_NCLOB function converts a LOB value to a NCLOB value.

Syntax

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

TO_NCLOB( expression )

Parameters or Arguments

expression

A char, varchar2, nchar, nvarchar2, clob or nclob value that will be converted to a NCLOB value.

Returns

The TO_NCLOB function returns a NCLOB value.

Applies To

The TO_NCLOB 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_NCLOB function examples and explore how to use the TO_NCLOB function in Oracle/PLSQL.

For example:

select TO_NCLOB(lob_column)
from suppliers;

This example would convert the value in the field called lob_column to an NCLOB value.