1.都删掉:
select distinct * into #tmp
from 表drop table 表select * into 表
from #tmpdrop table 表2.加“重复”create table #t(a varchar(10) )insert into #t values('a')
insert into #t values('b')
insert into #t values('b')
insert into #t values('b')
insert into #t values('c')select *,
(case when (select count(1) from #t where t.a=a)>1 then '重复' else '' end)
from #t t