mysql时间字段加减

update 20210406 set recordTime=date_add(recordTime,INTERVAL -5 hour) where id>2;

update 20210406 set recordTime=date_add(recordTime,INTERVAL -5 minute) where id>2;

update 20210406 set recordTime=date_add(recordTime,INTERVAL -5 second) where id>2;

 

 

参考:https://www.cnblogs.com/chuanzhang053/p/9228798.html

posted @ 2021-04-06 18:29  西北逍遥  阅读(154)  评论(0编辑  收藏  举报