Oracle Plsql Vsize Function

Oracle / PLSQL: VSIZE Function

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

Description

The Oracle/PLSQL VSIZE function returns the number of bytes in the internal representation of an expression.

Syntax

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

VSIZE( expression )

Parameters or Arguments

expression

The string to evaluate.

Returns

The VSIZE function returns a numeric value. If expression is NULL, then the VSIZE function returns NULL.

Applies To

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

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

Example

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

For example:

VSIZE('aodb is the nic')
Output: 15

VSIZE('aodb is the nic ')
Output: 16

VSIZE(null)
Output: <null>

VSIZE('')
Output: <null>

VSIZE(' ')
Output: 1