用PreparedStatement吧,用动态参数的方式来执行,例如PreparedStatement ps = conn.prepareStatement("INSERT INTO guest(?,?");
ps.setString(1,'hello');
ps.setTimestamp(2, new Timestamp(System.currentTimeInMills());
ps.executeUpdate();http://www.javayou.com
ps.setString(1,'hello');
ps.setTimestamp(2, new Timestamp(System.currentTimeInMills());
ps.executeUpdate();http://www.javayou.com
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货