SQL-J Language Reference,
Page 78 of 118


[top]
[prev]
[next]
Documentation Top
Global Index
Reference Manual
TOC Index
Grammar index
Developer's Guide
TOC Index
Tuning Cloudscape
TOC Index

OCTET_LENGTH

OCTET_LENGTH returns the number of octets in a character string expression or a bit string expression. For a bit string, the number of octets and the number of characters are always the same, since a bit string is considered to be made up of a series of octets.

Syntax

OCTET_LENGTH ( CharacterExpression | BitExpression )

A CharacterExpression is a CHAR, VARCHAR, or LONG VARCHAR data type, any built-in type that is implicitly converted to a string (except a bit expression), or any Java data type that directly maps to a built-in type that is implicitly converted to a string.

Example

OCTET_LENGTH('supercalifragilistic') -- returns 20
OCTET_LENGTH(X'FF') -- returns 1
[top]
[prev]
[next]


Cloudscape Version 3.0
For technical support, go to: www.cloudscape.com and click Support.
Copyright © 1998 and 1999 Cloudscape, Inc. All rights reserved.