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 小技巧 集锦

相关文章:

  • 2021-12-05
  • 2021-07-30
  • 2021-06-06
  • 2021-09-09
猜你喜欢
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
  • 2023-03-17
  • 2022-01-21
相关资源
相似解决方案