SQL

--数据库多字段去重
delete from student a where (a.no,a.name,a.science)in (select a.no,a.name,a.science from student a
group by a.no,a.name,a.science having count(*) > 1)
and rowid not in (select min(rowid) from student a group by a.no,a.name,a.science having count(*)>1);

posted @ 2019-09-19 11:06  凉了记忆  阅读(267)  评论(0编辑  收藏  举报