//这就是我想要做的。
insert into " + cityName + "_salesdeliveryslots(deliverydate,slotno,timedorders,addedon) "
+ " values(DATE_ADD(CURDATE() + INTERVAL 1 DAY) AS saleDeliveryDate, ?,?,Str_To_Date(? ,'%d-%m-%y'));";
int verify = jdbcTemplate.update(sql, new Object[] {date,slot,"1",date});
//能够纠正它的人吗?
答案 0 :(得分:0)
使用以下将提供下一个日期
cast(curdate() + 1 as date)