Array selects
Posted: Wed 12 Apr 2006 13:54
Hi, exploring array bind feature of OraDirect, I noticed that all examples are about inserts/updates/deletes... And nothing about selects.
But the problem is simple. I need to pass array of IDs (guids in my case, raw(16)) to retrieve several rows.
So select looks like this:
select * from objects where guid=:guid
I define "guid" parameter and pass one value. So this select works just fine. But the question is what happens if I put an array of elements in the value of this parameter?
Will this works like:
select * from objects where guid in (x1, x2, x3...xN)
where x1...xN are values from my array?
Any help would be really appreciated...
But the problem is simple. I need to pass array of IDs (guids in my case, raw(16)) to retrieve several rows.
So select looks like this:
select * from objects where guid=:guid
I define "guid" parameter and pass one value. So this select works just fine. But the question is what happens if I put an array of elements in the value of this parameter?
Will this works like:
select * from objects where guid in (x1, x2, x3...xN)
where x1...xN are values from my array?
Any help would be really appreciated...