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';
声明:本站所有文章和图片,如无特殊说明,均为原创发布。商业转载请联系作者获得授权,非商业转载请注明出处。
随机推荐
冒泡法排序
JavaScript DOM 查找元素
阿里云内容安全 API 签名机制
WordPress 文章置顶循环
Vue3 挂载全局方法
Photoshop 使用插件支持 webp 格式的文件
Debian11 安装笔记2:编译安装PHP
JavaScript Math 对象