|
wb_lob_length | Manipulating Variable-length Types in PHP | wb_lob_truncate |
Reads and returns a part of the lob LOB, starting with the character on the offset position (the first character has offset=0) and of the size character size (or to the end of the LOB if the length is less than offset+size).
Characters are:
Read the CLOB contents and send to the output document:
$cursor=wb_exec($connection,"SELECT clob_column FROM clob_table WHERE id=1"); wb_set_lob_mode($cursor,WB_LOBMODE_RESOURCE); wb_fetch_into($cursor,$rec); $start=0; while( ($segment=wb_lob_read($rec["CLOB_COLUMN"],$start,1024))!==FALSE ) { echo $segment; $start+=1024; ... } wb_close($rec["CLOB_COLUMN"]);
wb_lob_length | Manipulating Variable-length Types in PHP | wb_lob_truncate |