sql server 小技巧(2) 删除sql server中重复的数据

with list_numbers as
(
  select Name, AuthorOrTime, Url, Price, EstimatePrice, Size, Category,
  ROW_NUMBER() over (order by Name, AuthorOrTime, Url, Price, EstimatePrice, Size, Category) as 'rownumber'
  from Arts
)
delete list_numbers where rownumber not in
(
  select min(rownumber) from list_numbers group by Name, AuthorOrTime, Url, Price, EstimatePrice, Size, Category
)

sql server 小技巧 集锦

上一篇:项目移植过程中报:“Project facet Java version 1.7 is not supported.” 错误


下一篇:nmap常用参数详解