Open Alice52 opened 3 years ago
可以使用关联子查询去重
DELETE FROM Products P1 WHERE id < ( SELECT MAX(P2.id) FROM Products P2 WHERE P1.name = P2.name AND P1.price = P2.price );
去重- groupby-max+delete
可以使用关联子查询去重
去重- groupby-max+delete