sql删除重复记录

DELETE E FROM t E where E.id>

(
SELECT MIN(X.id)

FROM t X

WHERE X.name = E.name
);

原文地址:https://www.cnblogs.com/kexb/p/3660394.html