删除重复记录

编辑: admin 分类: mssql 发布时间: 2022-02-22 来源:互联网
我们经常【原URL http://www.nextecloud.cn转载请说明出处】在数据库中有重复的记录这时候我们希望删除那些重复的记录
你不要告诉我你是一条条手动删除的哈:

select distinct * into newtable form tablename
drop table tablename
select * into table from newtable
drop table newtable
思路好了就好做.
【来源:荆州seo http://www.5h5q.com/jingzhouseo/转载请说明出处】