日期:2014-05-16 浏览次数:20628 次
http://caihorse.iteye.com/blog/538432
?
删除重复记录的SQL
SELECT * FROM aaa E WHERE E.ROWID > (SELECT MIN(X.ROWID) FROM aaa X WHERE X.AA = E.AA);
?
DELETE FROM aaa E WHERE E.ROWID > (SELECT MIN(X.ROWID) FROM aaa X WHERE X.AA = E.AA);