刪除掉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);
相關文章
相關標籤/搜索