Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

passing an Array to Oracle function for SELECT query

user11987273Mar 9 2016 — edited Mar 9 2016

I am trying to find out if it is possible to pass an array object (C#) to an Oracle function using ODP.NET for use in SELECT statement.

This article seems to say that it isn't possible for SELECT statements.

ODP.NET: Put Your Arrays in a Bind

Basically, I need to pass the array of values so they can be used for a "WHERE ___ IN < >" clause.

Example:

c# string array = "Adam", "Bob"

Oracle function:

SELECT * FROM Employees WHERE Name in <array>

I understand I can do this using nested tables, but it seems I have to pass a string value as a parameter, not an array object.

This post has been answered by Alex Keh-Oracle on Mar 9 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 6 2016
Added on Mar 9 2016
2 comments
2,149 views