0

Pass array to IN param and getting array from OUT param using java sql . Without using ArrayDescriptor class.

I had a stored procedure like

create or replace Proc_name(
    vargs IN paramarray1,
    resp  OUT paramarray2)
..............
......

vargs like 5 input values and res will be in 3 out parameters

1 Answer 1

1

You need to create a java.sql.CallableStatement around your stored procedure, and then use the setArray and getArray methods.

Here's an example: Fetch pl/sql array return values in java

Sign up to request clarification or add additional context in comments.

1 Comment

How to setArray without using ArrayDescriptor class

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.