This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes How to pass a collection to Stored Proc from Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "How to pass a collection to Stored Proc from Java" Watch "How to pass a collection to Stored Proc from Java" New topic
Author

How to pass a collection to Stored Proc from Java

Jaydeep Deshmukh
Ranch Hand

Joined: Sep 10, 2002
Posts: 31
Hi Folks,

I need to pass a collection of numeric ids to a stored procedure in Oracle from a Java program. How do I achieve this?

Thanks in Advance
Jaydeep
Makarand Parab
Ranch Hand

Joined: Dec 10, 2004
Posts: 121
Hi Jaydeep
Pass the collection of numeric id's as comma seperated one string, inside the procedure, enumerate the string.

Regards
MAkarand Parab
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to pass a collection to Stored Proc from Java
 
It's not a secret anymore!