1:预处理
PreparedStatement pst = con.prepareStatement(sql);
pst.setTimestamp(1, new java.sql.Timestamp(d.getTime()));//前面的数字是顺序的,不按BD中的走.
<http://blog.csdn.net/gotohbu/archive/2009/08/31/4501811.aspx>
1:预处理
PreparedStatement pst = con.prepareStatement(sql);
pst.setTimestamp(1, new java.sql.Timestamp(d.getTime()));//前面的数字是顺序的,不按BD中的走.
<http://blog.csdn.net/gotohbu/archive/2009/08/31/4501811.aspx>