|
wb_get_lob_mode | Manipulating Variable-length Types in PHP |
Sets the new mode of reading LOBs from an open cursor cursor. This setting is valid for reading LOBs from this cursor using the wb_result and wb_fetch_into. The setting for each new opened cursor is WB_LOBMODE_DIRECT.
The current mode for reading LOBs from an open cursor may be retrieved by the wb_get_lob_mode function.
TRUE if successful, otherwise FALSE.
Set the WB_LOBMODE_RESOURCE mode, open a resource and read part of the CLOB:
$cursor=wb_exec($connection,"SELECT clob_column FROM clob_table WHERE id=1"); wb_set_lob_mode($cursor,WB_LOBMODE_RESOURCE); wb_fetch_row($cursor); $clob=wb_result($cursor,"clob_column"); echo wb_lob_read($clob,0,20);
wb_get_lob_mode | Manipulating Variable-length Types in PHP |