aspose file tools*
The moose likes JDBC and the fly likes PreparedStatement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "PreparedStatement" Watch "PreparedStatement" New topic
Author

PreparedStatement

Rashmi Reddy
Greenhorn

Joined: Oct 16, 2003
Posts: 19
Hi,
How do i set a String array i.e String[] in the prepared statement?
Thanks,
Rashmi
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

You need a sperate '?' for each element in your array and then bind each String to the PreparedStatement individually.
Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PreparedStatement