删除重复数据(多字段)

--删除重复数据(多字段)
with
m AS ( select *, row_number() over(PARTITION BY column1,column2,column3,column4,column5 ORDER by ValueAddedTaxGUID) rn FROM tableName
)
delete m where rn > 1

 

posted @ 2017-10-31 19:12  Prorsal  阅读(241)  评论(0编辑  收藏  举报