[如果我们使用’DISTINCT’我们怎么知道哪个记录是正确的并且重复一个? ]
delete f from ( select ROW_NUMBER() over (partition by YourFirstPossibleDuplicateField,YourSecondPossibleDuplicateField order by WhateverFieldYouWantSortedBy) as DelId from YourTable ) as f where DelId > 1