//把id为1的那条数据的开始时间改为现在  结束时间改为开始时间的1个月后

update 表明 set  begintime=now(),endtime=date_add(NOW(), interval 1 MONTH) where id=1;

date_add() 增加
date_sub()减少

month 月份
minute 分钟
second 秒

相关文章:

  • 2021-09-12
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-23
  • 2022-12-23
  • 2022-02-02
  • 2022-12-23
相关资源
相似解决方案