Connecting Tech Pros Worldwide Help | Site Map

PHP - ORACLE - VARRAY

  #1  
Old July 17th, 2005, 01:14 PM
PedroSilva
Guest
 
Posts: n/a
I need to know how to get a collection (varray), basically it's an
array of chars with size of 9999 positions, from oracle so I can use
it as an array with php. There's very little documentation about it.
The only thing I found was
http://conf.php.net/pres/slides/oci/paper.txt , but only talks about
putting an array on the database, not getting it.

I tried this:
$arr = OCINewCollection($db,'VARCHAR2_V','SCHEMA');
$stmt=ociparse($db,$query_sql);
OCIDefineByName($stmt,'VFIELD',$arr);
OCIExecute($stmt);

But no luck.
VARCHAR2_V is the varray type.
The variable $query_sql is a simple SELECT of the VARRAY, and in SQL
Navigator works just fine.

print $arr->size()."\n";
Just says that the size is 0.

Is there a way to get the array, with php commands or sql?
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
php-5.2.5 compile error with xmlrpc Benjamin Grieshaber answers 0 December 4th, 2007 12:35 PM
error while doing 'make' in php-5.2.1 tsivaraman@gmail.com answers 0 February 12th, 2007 03:35 PM
php extensions and windows... specifically extension_dir Chris Paul answers 3 December 5th, 2005 12:45 AM
using php to populate a <ul Japhy answers 4 October 4th, 2005 07:05 PM
why can't i reach www.php.net? lawrence answers 3 July 17th, 2005 12:50 AM