Adsense Ad

Saturday 13 May 2017

Oracle PLSQL: VSIZE Function

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.

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('Tech on the net')
Result: 15

VSIZE('Tech on the net ')
Result: 16

VSIZE(null)
Result: <null>

VSIZE('')
Result: <null>

VSIZE(' ')
Result: 1

No comments: