请提供从数据库中获取下一小时的代码。例如,我timestamp
从数据库中得到一个:
String sqlupdate = "select UploadedDate from CAF_Entry where Status='new' and Reference=0 order by UploadedDate limit 1";
System.out.println("sql query"+sqlupdate);
Statement stupdate = con.createStatement();
ResultSet rsupdate = stupdate.executeQuery(sqlupdate);
if(rsupdate.next())
{
date22=rsupdate.getTimestamp("UploadedDate");
String stringdate=date22.toString();`
我得到日期2012-11-12 10:30:00
我如何获得下一个小时,例如2012-11-12 11:00:00
?