CREATE TABLE my_tmp AS SELECT MIN(ID) AS col1 FROM wp_posts GROUP BY post_title;DELETE FROM wp_posts WHERE ID NOT IN (SELECT col1 FROM my_tmp);DROP TABLE my_tmp;
wordpress删除重复文章,直接在phpmyadmin里运行语句即可。特别提示,运行前先备份一下,以防万一。
CREATE TABLE my_tmp AS SELECT MIN(ID) AS col1 FROM wp_posts GROUP BY post_title;DELETE FROM wp_posts WHERE ID NOT IN (SELECT col1 FROM my_tmp);DROP TABLE my_tmp;
wordpress删除重复文章,直接在phpmyadmin里运行语句即可。特别提示,运行前先备份一下,以防万一。