如何删除重复的行? - How can I remove duplicate rows?

问题:

What is the best way to remove duplicate rows from a fairly large SQL Server table (ie 300,000+ rows)? 从至关大的SQL Server表(即300,000+行)中删除重复行的最佳方法是什么? ide

The rows, of course, will not be perfect duplicates because of the existence of the RowID identity field. 固然,因为存在RowID标识字段,所以这些行将不是完美的重复项。 spa

MyTable MyTable .net

RowID int not null identity(1,1) primary key,
Col1 varchar(20) not null,
Col2 varchar(2048) not null,
Col3 tinyint not null

解决方案:

参考一: https://stackoom.com/question/4vM/如何删除重复的行
参考二: https://oldbug.net/q/4vM/How-can-I-remove-duplicate-rows
相关文章
相关标签/搜索