删除掉mysql数据库某张表中完全重复数据的方法
student 表
删除表中除了学好sno,其他字段数据一样的数据,sql语句如下:
delete from student where sno not in(select bid from(select min(sno) as bid from student group by
sname,ssex,sage) as b);
student 表
删除表中除了学好sno,其他字段数据一样的数据,sql语句如下:
delete from student where sno not in(select bid from(select min(sno) as bid from student group by
sname,ssex,sage) as b);