WITH CTE AS ( SELECT *, ROW_NUMBER() OVER (PARTITION BY [列名1], [列名2],...,[列名n] ORDER BY (SELECT NULL)) RN FROM [表名] ) DELETE FROM CTE WHERE RN > 1;
其中,[列名1], [列名2],…,[列名n] 是需要去重的列名,可以根据实际情况进行修改。这个语句会保留每组重复数据中的第一条记录,并删除其他记录。请确保备份好数据后再执行此操作。