MySQL 计算两个日期之间相差的秒数 SQL

update h5perf_task set run_state = 0 where id in
(SELECT  t.id from (SELECT * FROM h5perf_task WHERE run_state = 2
and UNIX_TIMESTAMP( now() )-UNIX_TIMESTAMP(begin_run_time) > 420) t);
    原文作者:一个会写诗的程序员
    原文地址: https://www.jianshu.com/p/d96f20987d77
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞