faqts : Computers : Programming : Languages : PHP : Database Backed Sites : Oracle

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

19 of 41 people (46%) answered Yes
Recently 2 of 10 people (20%) answered Yes

Entry

Need to know how to Select Data from a Clob Field, ie. where clob ='blah'

May 3rd, 2004 18:50
Eyzen Medina, Christopher Boyce,


I think you can't do at this way.
When you retrieve a blob file you have to use a load function inside 
the oci library for example.
       $db = OCILogon("scott","tiger");
        $stmt = OCIParse($db,"select * from anydemo_with_blob_table");
        OCIExecute($stmt);
        while (OCIFetchInto($stmt,$arr,OCI_ASSOC)) {
		 echo $arr[ "LOBFIELD" ]->load()."\n";
		}
the table have a LOBFIELD type BLOB
So, you can create a varchar2 field description in the same table for 
this BLOB and search in this field.
I hope that this help you
Eyzen