delete from table_name a where rowid <
(select max(rowid) from table_name b
where a.col1 = b.col1
and a.col2 = b.col2 -- 遍历所以数据,以确定重复纪录
)
删除表中重复行SQL
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
上一篇:FORM打开网页链接
下一篇:EBS应付(AP)模块常用表
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
SQL Server 表中删除重复行
SQL Server 去重
SQL Server 去重 -
SQL查找删除重复行
好文
字段 查询语句 数据 java mysql -
删除表中重复字段
删除表中多余的重复行(保留重复行主键ID最少的记录)delete 表名 where
delete table 主键 字段 删除表