dbTalk Databases Forums  

Binding an array to an input variable in OCI

comp.databases.oracle comp.databases.oracle


Discuss Binding an array to an input variable in OCI in the comp.databases.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bruce Collie
 
Posts: n/a

Default Binding an array to an input variable in OCI - 09-03-2005 , 03:12 PM






Hi,

I want to bind an array to the following sql statement using oci

SELECT UUID FROM TEST WHERE TYPE=:VAL

UUID is INTEGER
TYPE is CHAR(1)

If i use obndrv it only ever seems to use the first value in the array.
If i use obindps (which i've not used before) i cannot seem to get the
parameters correct, i get various different errors.

Does anybody know what is going wrong?
Any chance of a code sample for this?

Thanks
Bruce Collie





Reply With Quote
  #2  
Old   
HansF
 
Posts: n/a

Default Re: Binding an array to an input variable in OCI - 09-03-2005 , 05:34 PM







CHapter 5 of Oracle's document "Oracle Call Interface Programmer's Guide"
is all about binding. Includes a section on binding with arrays and has
examples.

http://download-west.oracle.com/docs...bnd.htm#420516

You might want to switch to the officially chartered group
'comp.databases.oracle.server'. (As compared to this one that was
created as a result of a typo - 'database' instead of 'databases'.)
Non-chartered groups are not carried by many news providers so you are
missing a lot of possible support people.

--
Hans Forbrich
Canada-wide Oracle training and consulting
mailto: Fuzzy.GreyBeard_at_gmail.com
*** I no longer assist with top-posted newsgroup queries ***


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.