• Post Reply Bookmark Topic Watch Topic
  • New Topic

PreparedStatement

 
Rashmi Reddy
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How do i set a String array i.e String[] in the prepared statement?
Thanks,
Rashmi
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need a sperate '?' for each element in your array and then bind each String to the PreparedStatement individually.
Dave
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!