MySQL 批量修改时间
update tb_article set created_at=date_add(created_at,interval+600 day);

update wp_posts set post_date=date_add(post_date,interval+600 day);
update wp_posts set post_date_gmt=date_add(post_date_gmt,interval+600 day);
update wp_posts set post_modified=date_add(post_modified,interval+600 day);
update wp_posts set post_modified_gmt=date_add(post_modified_gmt,interval+600 day);

update wp_posts set post_date_gmt=post_date where 1;

select ID, post_date, post_title from wp_posts where post_date>'2023-01-01 12:12:00';

update wp_posts set post_date_gmt=post_date where 1;

update wp_posts set post_date=date_add(post_date,interval+300 day)
where post_date>'2023-01-01 12:12:00' and post_date<'2024-01-01 12:12:00';

update wp_posts set post_date=date_add(post_date,interval-300 day)
where post_date>'2023-01-01 12:12:00' and post_date<'2030-01-01 12:12:00';

update wp_posts set post_date=date_add(post_date,interval+300 day)
where post_date>'2023-01-01 12:12:00' and post_date<'2024-01-01 12:12:00';
声明:本站所有文章,如无特殊说明或,均为原创发布。商业转载请联系作者获得授权,非商业转载请注明出处。本站所有图片如无特殊说明均为AI生成。
真诚赞赏,手留余香
赞赏
JavaScript
JavaScript 代码混淆加密工具 javascript-obfuscator
2023-03-27
后端其他,前端
RESTful API 执行 delete 返回204无法获取 Body
2023-05-10
Jone
在什么样的花园里面,挖呀挖呀挖
种什么样的种子,开什么样的花
随机推荐
MySQL 表名预处理
CSS 媒体特性 prefers-color-scheme
Node.js 18.x 开始支持内置单元测试
MySQL 使用 DATE_FORMAT() 和 FROM_UNIXTIME() 格式化时间
阿里云内容安全 API 签名机制
Node.js 使用 Jest 和 supertest 做接口测试
JavaScript 检查 Date 是否为 Invalid Date
Nginx 通过日志统计访问数据
Vue3 挂载全局方法
Debian11 安装笔记1:编译安装Nginx、Naxsi 和 Njs

微信联系我

夜间模式切换
回到顶部