Home > PHP > Function > > db2_lob_read()

db2_lob_read()

db2_lob_read - Gets a user defined size of LOB files with each invocation

Syntax

string db2_lob_read (resource $stmt, int $colnum, int $length)

Arguments

  • stmt - A valid stmtresource containing LOB data.
  • colnum - A valid column number in the result set of the stmtresource.
  • length - The size of the LOB data to be retrieved from the stmtresource.

Description

Use db2_lob_read() to iterate through a specified column of a result set and retrieve a user defined size of LOB data.

Version

PHP PECL ibm_db2 >= 1.6.0

Return value

Returns the amount of data the user specifies. Returns FALSE if the data cannot be retrieved.