select A from table(表名) group by A HAVING COUNT(A)>1举个实际的例子,查询student中有名字名字和学号都重复的学号和姓名select sname,s# from student group by sname,s# HAVING COUNT(sname)>1,效果如下那么查询下student表(可以加上条件)
你的图中post_content全一样,post_title有两种,这算不算重复呀?我按post_content重复就查找出来。查重:select post_content,post_title from wp_posts group by post_content having count(post_content)>1删除要先将数据查询到临时表中,然后将原表清空,在追加回来。