OCTET_LENGTH

Purpose

This function returns the octet length of a string. If only ASCII characters are used, then this function is equivalent to CHARACTER_LENGTH and LENGTH

Syntax

octet_length::=

Example

SELECT OCTET_LENGTH('abcd') OCT_LENGTH;

SELECT OCTET_LENGTH('äöü') OCT_LENGTH;