Tuesday, September 6, 2016

Oracle Delete dublicated rows

DELETE FROM your_table
WHERE rowid not in
(SELECT MIN(rowid)
FROM your_table
GROUP BY column1, column2, column3);

No comments:

Post a Comment