删除掉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);



猜你喜欢

转载自blog.csdn.net/qq_35632702/article/details/79497545