LENGTH function - returns the length of a VARBINARY value
The LENGTH function returns the length of a VARBINARY value.
Syntax
Parameters
- input
- An input argument of type VARBINARY(32672) that specifies the value to be measured the length.
Authorization
EXECUTE privilege on the UTL_RAW module.
Example
Example 1: The following example returns the length of a VARBINARY
value:
db2 "select sysibmadm.utl_raw.length(bx’3132’) from sample "
1
-----------
2
1 record(s) selected.