利用 distinct 关键字过滤重复的行,将查询的结果写入临时表 select distinct * into #temp from mytable 删除原表的数据 delete mytable将临时表插入到表中 insert mytable select * from #temp释放临时表 drop table #temp删除数据行是NULL的delete from mytable where time is null 来源:https://www.cnblogs.com/Haihong72H/p/11765451.html 标签 临时表 大数据 select distinct