This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes Passing a string array as a parameter - urgent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Passing a string array as a parameter - urgent" Watch "Passing a string array as a parameter - urgent" New topic
Author

Passing a string array as a parameter - urgent

Subrahmanyam Devarakonda
Greenhorn

Joined: Oct 26, 2006
Posts: 2
Hi,

We have a stored procedure which takes a synonym as its input parameter.

A friend of mine told me pass String[] to your callable statement as a parameter.

My post is

1. How to pass a String[] as a parameter to a procedure call?

2. Is there any alternative way to pass values to such a procedure which takes a synonym as a input parameter?

Thanks in advance.


Courage is the not the strength to go on<br />but to go on when there is no strength
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3700
    
    5

Have you tried setArray() in the PreparedStatement API?


My Blog: Down Home Country Coding with Scott Selikoff
Subrahmanyam Devarakonda
Greenhorn

Joined: Oct 26, 2006
Posts: 2
Thanks a lot. We are trying it out.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing a string array as a parameter - urgent
 
Similar Threads
stored procedure
Java code to access a stored procedure
Issue calling a stored procedure from Weblogic 8.1 workshop project
How to Create and run Oracle Stored procedure
pass two bytes of space to DB2