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

mysql时间字段加减

上一篇:jdbc的简单事务


下一篇:Qt5.14.2通过qmake编译mysql驱动,生成dll