oracle 删除表中重复数据留一条
删除表中多余的重复记录,重复记录是根据单个字段(Id)来判断,只留有rowid最小的记录
DELETE from _tableName WHERE (id) IN ( SELECT id FROM _tableName GROUP BY id HAVING COUNT(id) > 1) AND ROWID NOT IN (SELECT MIN(ROWID) FROM _tableName GROUP BY id HAVING COUNT(*) > 1);