Windows Oracle Data Access Components (MOSC)

MOSC Banner

Passing an array

edited Jun 25, 2018 1:56PM in Windows Oracle Data Access Components (MOSC) 5 commentsAnswered
 

Hello,

I need to pass an array to the query.  I have a code related it. But It shows me only first row when I execute it . And when I see from the 10046 trace file there is only one value. It was the first element of array that I created below. Does anyone  have any idea using properly please help me? Thank you

    String[] groupArray = { "BAT", "BATG", "BATE", "BATR" };
    String[] tableArray = { "BAT1", "BAT2", "BAT3", "BAT4" };

    cmd = new OracleCommand("SELECT TABLE_ID, GROUP_ID, DESC FROM TABLES WHERE GROUP_ID = :WGROUP_ID AND TABLE_ID = :WTABLE_ID", conn);

    cmd.CommandType = CommandType.Text;

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center