PreparedStatement prep = conn.prepparedStatement("select * from table where to_date(购买日期,"存储的格式!") between ? and ?");prep.setTimestamp(1,start);prep.setTimestamp(2,end);prep.executeQuery();
.....