I have to send an array to a stored procedure as a parameter from java program. how can we do that. please help me in this
-
What database? Arrays and stored procedures are a tricky topic when it comes to handling them with JDBC. Also, are you just using plain JDBC, or some sort of abstraction, such as JPA?Lukas Eder– Lukas Eder2011-07-18 13:05:11 +00:00Commented Jul 18, 2011 at 13:05
-
Which data base do you use. For PL/SQL I think you can find an answer here asktom.oracle.com/pls/asktom/…Fedor Skrynnikov– Fedor Skrynnikov2011-07-18 13:06:20 +00:00Commented Jul 18, 2011 at 13:06
-
And please add the signature of the stored procedure as well.Codo– Codo2011-07-18 13:06:44 +00:00Commented Jul 18, 2011 at 13:06
Add a comment
|
2 Answers
This is a vendor centric implementation and so would be different for different databases. For Oracle you need to use ArrayDescriptor class of oracle.sql package. Follow the link below for a sutable answer discussed on AskTom site: http://asktom.oracle.com/pls/asktom/f?p=100:11:2906896739396193::::P11_QUESTION_ID:712625135727