This Oracle tutorial explains how to use the Oracle/PLSQL LENGTHC function with syntax and examples.
The Oracle/PLSQL LENGTHC function returns the length of the specified string, using Unicode complete characters.
The syntax for the LENGTHC function in Oracle/PLSQL is:
The string to return the length for. string1 can be CHAR, VARCHAR2, NCHAR, or NVARCHAR2. string1 can not be CLOB or NCLOB.
The LENGTHC function returns a numeric value. If string1 is NULL, then the LENGTHC function will return NULL.
The LENGTHC function can be used in the following versions of Oracle/PLSQL:
Let's look at some Oracle LENGTHC function examples and explore how to use the LENGTHC function in Oracle/PLSQL.
For example: