你可能要使用
setArray下面的
javadoc中提到的方法:
http://docs.oracle.com/javase/6/docs/api/java/sql/PreparedStatement.html#setArray(int,java.sql.Array)
样例代码:
PreparedStatement pstmt = conn.prepareStatement("select * from employee where id in (?)");Array array = conn.createArrayOf("VARCHAR", new Object[]{"1", "2","3"});pstmt.setArray(1, array);ResultSet rs = pstmt.executeQuery();


