The OCTET_LENGTH function
counts a multibyte character as multiple characters. For example,
if the specified string contains 6 two-byte characters, the OCTET_LENGTH
function returns a value of 12.
If the character string
is a bit string, the OCTET_LENGTH function returns the number of bytes
it takes to hold the number of bits.
Comparisons
The CHARACTER_LENGTH
function also returns the number of characters in a character string,
but counts a multibyte character as a single character. The OCTET_LENGTH
function counts a multibyte character as multiple characters.
Example
The following statements
illustrate the OCTECT_LENGTH function: