摘要:
假定参数为: Int[] objs;......StringBuffer sql = new StringBuffer();sql.append("select * from table where id in(");for (int i=0; i<objs.length; i++) (i == objs.length-1) ? sql.append("?)") : sql.append("?,");PreparedStatement ps = conn.preparedStatement(sql.toString());for 阅读全文
posted @ 2013-05-16 22:32
海山
阅读(1519)
评论(0)
推荐(0)

浙公网安备 33010602011771号