WordPress mysql 实用删除重复标题文章phpMyAdmin

DELETE a.* FROM wp_posts AS a INNER JOIN ( SELECT post_title, MIN( id ) AS min_id FROM wp_posts WHERE post_type = 'post' AND post_status = 'publish' GROUP BY post_title HAVING COUNT( * ) > 1 ) AS b ON b.post_title = a.post_title AND b.min_id <> a.id AND a.post_type = 'post' AND a.post_status = 'publish' 

非常的好用,不像外面那种泛滥的语句和插件,速度很快,执行SQL语句秒删除重复标题文章:

猜你喜欢

转载自blog.csdn.net/qq25279442/article/details/109102567