String sql= "select amount,\n"+ "Temperature,\n"+ "Density\n"+
"from sheet\n"+ "where Code=? and product=? and and month(date)=? && year(date)=? ";
PreparedStatement stmt=DBConnectionDATABASE.prepareStatement(sql);
try {
stmt.setString(1, get.Code());
stmt.setString(2, get.Product());
stmt.setInt(3, get.month());
stmt.setInt(4, get.Year());
如何使用数据找到上个月的最后一天。