String str = " 2000-12-30 12:56:31 " ; DateFormat df = DateFormat.getDateTimeInstance();java.sql.Timestamp date = new java.sql.Timestamp(df.parse(str).getTime()); preStamt.setTimestamp( 1 , date); // 父-->子类,强制