Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to insert an ArrayList into a JDBC PreparedStatement

843785Feb 25 2009 — edited Feb 25 2009
PreparedStatement updateStatement = conn.prepareStatement("UPDATE users SET disabled=1 WHERE ID IN ?;");
I'd like to know what's the best way to insert an array into an PreparedStatement.
How can I replace the ? with an array?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 25 2009
Added on Feb 25 2009
11 comments
2,785 views