全部的命令为下
create table my_tmp as select min(ID) as col1 from blog_posts group by post_title;
delete from blog_posts where ID not in (select col1 from my_tmp);
drop table my_tmp;
create table my_tmp as select min(ID) as col1 from blog_posts group by post_title;delete from blog_posts where ID not in (select col1 from my_tmp); drop table my_tmp;
其中 blog_posts 是你的数据库中的那个一般为 wp_posts 的库
简单就是快乐-平凡就是幸福-冬嘦慧不忈-慧慧-冬冬-玉慧 » 利用sql命令删除标题重复的文章