getSubString(long pos, int length)

Syntax:

byte[] getSubString(long pos, int length) throws SQLException

Description:

Retrieves a copy of the specified substring in the CLOB value designated by this Clob object. The substring begins at position pos and has up to length consecutive characters.

Parameters:

pos

the first character of the substring to be extracted. The first character is at position 1.

length

the number of consecutive characters to be copied; the value for length must be 0 or greater

Returns:

Type: String 

a String that is the specified substring in the CLOB value designated by this Clob object

Throws:

SQLException - if a database access error occurs

Reference:

For more information, reference JDBC documentation for: Clob.getSubString(long, int)