create table aa(areaid int , areaname varchar(100))
insert aa select 1,'合肥市'
union all select 1,'合肥市'
union all select 2,'芜湖市'
union all select 2,'芜湖市'
union all select 4,'北京市'
union all select 4,'北京市'
union all select 6,'安庆市'
union all select 6,'安庆市'
union all select 7,'巢湖市'
union all select 7,'巢湖市'
select distinct * into #bb from aa
delete from aa
select * from #bb
drop table aa
drop table #bb