删除重复的数据

delete sfz where sf_id not in(
 select min(sf_id) as autoID  from sfz group by 合同编号,姓名
)

原文地址:https://www.cnblogs.com/MyBeN/p/2705709.html