OCTET_LENGTH

Returns the length of a value. The argument must be type BINARY, VARBINARY, BLOB, CLOB, DBCLOB, VARGRAPHIC, GRAPHIC, VARCHAR, or CHAR. The result is a large integer. It is the length, in bytes, of the argument. The length of strings includes blanks.

Example:

Assume table T1 has a GRAPHIC(10) column.

   SELECT OCTET_LENGTH(C1) FROM T1

The result is 20.