Win a copy of Design for the Mind this week in the Design forum!
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic