Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想批量替换 wp_posts 表中字段 post_date 内的 4 位数年份。
有人可以显示应该执行的 SQL 语句吗?
我想从 更改2011-02-06 17:05:07为2012-02-06 17:05:07,所以只有从 2011 年更改为 2012 年的年份。
2011-02-06 17:05:07
2012-02-06 17:05:07
谢谢,
UPDATE wp_posts SET post_date = DATE_ADD(post_date , INTERVAL 1 YEAR) -- WHERE condition here
资源