I need to take the values from a specific column in a table and place them into an array.
I’m thinking to use a PL/SQL Stored procedure then calling the procedure in java and using something like:
CallableStatement.getArray(2, myArray);
I was thinking of using something like:
SELECT column1
INTO myVARRAY
FROM table1
WHERE table_id = t_id;
In a stored procedure
But that didn’t work
Presume that
myVARRAYis of typevarchar2. In this case you could try something likeand then you add p_col into your array by
And from Java call your array by
Hope this will be helpful, otherwise provide more information about your function/procedure and the type of errors you are getting.