-- 删除重复的supplierName,并且保留SupplierId最大的一个begin trandelete T From(Select Row_Number() Over(Partition By supplierName order By SupplierId desc) As 'rn',*From Supplier)TWhere T.rn > 1-- commit-- rollback