1.先查询一样的数据
select * from table where num1 in(select num2 from table)
2.进行删除
delete table where id in(select id from table where num1 in(select num2 from table))
假设表名为test:
select * from (select *, concat(name,code) as __f from test order by date desc) __t group by __fselect name,grade,testGrade,count(*) from t_student group by (name,grade,testGrade) having count(*)>1 where grade is null欢迎分享,转载请注明来源:内存溢出
评论列表(0条)