Skip to Main Content

Java Development Tools

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!

PreparedStatement.setArray

488824Feb 7 2008 — edited Feb 8 2008
Hello,

I'd like to use a preparedstatement to perform a query like this:
select * from requests where id_request in ( ? )

I've tried to do
pstmt.setArray(1, "1, 2, 3"); but it doesn't work.

Does anyone know how to do this?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 7 2008
Added on Feb 7 2008
4 comments
481 views