Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JDBC and Relational Databases
passing a array of values froms oralce
snebe snebe
Greenhorn
Posts: 1
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How do i get back array of values from oracle stored procedure?
For eg;I want five columns from a table and it has many rows i need to put it into the array and pass it back to
jdbc
call.How do i do it?
Thanks,.
--snebe
Jamie Robertson
Ranch Hand
Posts: 1879
I like...
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
why not return the resultset itself(or ref cursor in oracle?)
example:
// Prepare a PL/SQL call CallableStatement call = conn.prepareCall ("{ ? = call java_refcursor.job_listing (?)}"); // Find out all the SALES person call.registerOutParameter (1, OracleTypes.CURSOR); call.setString (2, "SALES"); call.execute (); ResultSet rset = (ResultSet)call.getObject (1); //...process rset...
taken from:
http://developer.novell.com/ndk/doc/samplecode/jdbc_sample/oci7/RefCursorExample.java.html
hope this was helpful,
Jamie
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Is this a limitation of JSP ?- I can do it in ASP
Passing objects w/ JNI
Converting an array to a Vector -> Simple question with many doubts
Object casting
Enhanced Loop
More...