oracle 删除重复数据 只保留一条

DELETE from t_ows_compelete_rfc WHERE operation_no is null
IN ( SELECT operation_no FROM t_ows_compelete_rfc GROUP BY operation_no HAVING COUNT(*) > 1)
 AND ROWID NOT IN (SELECT MIN(ROWID) FROM t_ows_compelete_rfc GROUP BY operation_no HAVING COUNT(*) > 1);

 

你可能感兴趣的:(oracle 删除重复数据 只保留一条)