当前位置:Gxlcms > 数据库问题 > mysql时间字段加减

mysql时间字段加减

时间:2021-07-01 10:21:17 帮助过:27人阅读

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

mysql时间字段加减

标签:nbsp   add   logs   mysq   sql   HERE   interval   mys   http   

人气教程排行