getValueLength(Integer) Method

Gets the length of a LOB column or a character string type.

Parameters

Type Name Description
Integer colIndex The zero-based column index.

Returns

Returns the byte length of a LOB or character string type, or -1 if that information is not available. For character string columns, this length is the byte length in the UTF-8 encoding (which is different from the JavaScript string length). If the column is a NULL value, then 0 is returned.