alter table SendMailList
add key_col int not null identity(1,1)
go
delete from SendMailList
where exists
(
select * from SendMailList as t2
where t2.EMail=SendMailList.EMail
and t2.key_col>SendMailList.key_col
)
go
alter table SendMailList
drop column key_col

 


delete from SendMailList
where exists
(
select * from SendMailList as t2
where t2.EMail=SendMailList.EMail
and t2.id>SendMailList.id
)

相关文章:

  • 2021-06-25
  • 2021-12-21
  • 2022-02-05
  • 2022-02-13
  • 2022-12-23
猜你喜欢
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2021-09-20
  • 2021-07-03
相关资源
相似解决方案