This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 3703
    
    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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
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