This Oracle tutorial explains how to use the Oracle/PLSQL VSIZE function with syntax and examples.
The Oracle/PLSQL VSIZE function returns the number of bytes in the internal representation of an expression.
The syntax for the VSIZE function in Oracle/PLSQL is:
VSIZE( expression )
The string to evaluate.
The VSIZE function returns a numeric value. If expression is NULL, then the VSIZE function returns NULL.
The VSIZE function can be used in the following versions of Oracle/PLSQL:
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