博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
删除sql server中重复的数据
阅读量:4358 次
发布时间:2019-06-07

本文共 479 字,大约阅读时间需要 1 分钟。

原文:

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
)

 

 

posted on
2014-12-01 15:23 阅读(
...) 评论(
...)

转载于:https://www.cnblogs.com/lonelyxmas/p/4135165.html

你可能感兴趣的文章
ubuntu 实用命令收集
查看>>
[算法]分治算法(Divide and Conquer)
查看>>
mssql格式化工具——SQL PRETTY PRINTER
查看>>
datagrid删除按钮
查看>>
Redis高级进阶(一)
查看>>
地图坐标助手-开发总结
查看>>
Android资源--颜色RGB值以及名称及样图
查看>>
ORA-32001:write to SPFILE requested but no SPFILE is in use
查看>>
PhysX入门教程(全)
查看>>
ASP.NET XML与JSON
查看>>
java.lang.Class.getResource()这哥个方法主要是做什么用
查看>>
Codeforces 948D Perfect Security 【01字典树】
查看>>
android中通过ServerSocket创建端口问题
查看>>
fieldset、legend、display html元素
查看>>
IntelliJ IDEA 14.x 与 Tomcat 集成,创建并运行Java Web项目
查看>>
JavaWeb学习-Tomcat
查看>>
MySQL 事务与锁机制
查看>>
优秀程序员==工作时间长的程序员么?
查看>>
docker学习笔记2:容器操作
查看>>
深入浅出设计模式——访问者模式(Visitor Pattern)
查看>>