如何在某个时间间隔之后更新表格,当条件匹配时?如何在特定时间间隔后更新表格
tb_contest id contest_id name is_expire 1 101 new 0 2 102 old 0 tb_answer contest_id answer_id date 101 1 2012-02-02 101 2 2012-09-14 102 5 2012-06-01
我需要更新tb_contest
某些条件得到满足后,使is_expire=1
后2天的最后答案的基础上获得I:E 2012-03-14
,所以tb_contest
应该2012-09-16
进行更新。
非常感谢。 – syncdm2012