怎么删除数据库中某一列重复的数据??初学者,跪求好人帮忙
sqlserver吧
全部回复
仅看楼主
level 1
i莫名 楼主
如题,A表中a列里有重复的数据,要把它删掉,求代码,谢谢
2012年08月23日 02点08分 1
level 1
i莫名 楼主
select distinct * from sheetselect distinct * into #tmp from sheetdrop table sheetselect * into sheet from #tmpdrop table #tmp
还是要靠自己。。。
2012年08月23日 03点08分 2
level 1
i莫名 楼主
select distinct * from sheet
select distinct * into #tmp from sheet
drop table sheet
select * into sheet from #tmp
drop table #tmp
2012年08月23日 03点08分 3
level 8
不用这么复杂吧,直接delete from就行哇,得加个子查询
2017年04月04日 06点04分 6
1