Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> OCI, host arrays and where clause

OCI, host arrays and where clause

From: Kelly Burkhart <kburk_at_notmy.realaddress>
Date: 1998/01/10
Message-ID: <x6iursjis3.fsf@speedy.sky.net>#1/1

Is it possible to use arrays in OCI in the where clause of a select statement? Consider the following:

...

const char fooArr[2][4]= { "one", "two" }; const char *stmt=

        "select foo, bar from blah where foo = :fooArr"
...

When executed the statement should be equivilent to

select foo,bar from blah where foo = 'one' union
select foo,bar from blah where foo = 'two'

-- 
Kelly R. Burkhart
nospam mailto kburk at sky dot net
Received on Sat Jan 10 1998 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US