T-SQL 集锦
2012-03-16 16:04 河蟹社会 阅读(175) 评论(0) 收藏 举报alter table SubscribeList add id int identity(1,1)
select max(id) as id into #t from SubscribeList group by mail
delete from SubscribeList where id not in (select id from #t)
drop table #t
alter table SubscribeList drop column id
删除表中重复字段,保留一个.
浙公网安备 33010602011771号