摘要: 构造SQL 语句:String sql = "select id,name,age,gender,birth from student where name like ?"; 参数设值:PreparedStatement ps = conn.PreparedStatement(sql);String str = getName();ps.setString(1,"%" + str + "%"); 阅读全文
posted @ 2013-10-08 14:36 若 ♂ 只如初见 阅读(831) 评论(0) 推荐(0) 编辑